Skip to content

Commit 5e6df0e

Browse files
committedJan 16, 2021
ContentDB: Ignore content not installed from ContentDB
1 parent 4b01282 commit 5e6df0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

Diff for: ‎builtin/mainmenu/dlg_contentstore.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -580,22 +580,22 @@ function store.update_paths()
580580
local mod_hash = {}
581581
pkgmgr.refresh_globals()
582582
for _, mod in pairs(pkgmgr.global_mods:get_list()) do
583-
if mod.author then
583+
if mod.author and mod.release > 0 then
584584
mod_hash[mod.author:lower() .. "/" .. mod.name] = mod
585585
end
586586
end
587587

588588
local game_hash = {}
589589
pkgmgr.update_gamelist()
590590
for _, game in pairs(pkgmgr.games) do
591-
if game.author ~= "" then
591+
if game.author ~= "" and game.release > 0 then
592592
game_hash[game.author:lower() .. "/" .. game.id] = game
593593
end
594594
end
595595

596596
local txp_hash = {}
597597
for _, txp in pairs(pkgmgr.get_texture_packs()) do
598-
if txp.author then
598+
if txp.author and txp.release > 0 then
599599
txp_hash[txp.author:lower() .. "/" .. txp.name] = txp
600600
end
601601
end

0 commit comments

Comments
 (0)
Please sign in to comment.