Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ContentDB: Ignore content not installed from ContentDB
  • Loading branch information
rubenwardy committed Jan 16, 2021
1 parent 4b01282 commit 5e6df0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtin/mainmenu/dlg_contentstore.lua
Expand Up @@ -580,22 +580,22 @@ function store.update_paths()
local mod_hash = {}
pkgmgr.refresh_globals()
for _, mod in pairs(pkgmgr.global_mods:get_list()) do
if mod.author then
if mod.author and mod.release > 0 then
mod_hash[mod.author:lower() .. "/" .. mod.name] = mod
end
end

local game_hash = {}
pkgmgr.update_gamelist()
for _, game in pairs(pkgmgr.games) do
if game.author ~= "" then
if game.author ~= "" and game.release > 0 then
game_hash[game.author:lower() .. "/" .. game.id] = game
end
end

local txp_hash = {}
for _, txp in pairs(pkgmgr.get_texture_packs()) do
if txp.author then
if txp.author and txp.release > 0 then
txp_hash[txp.author:lower() .. "/" .. txp.name] = txp
end
end
Expand Down

0 comments on commit 5e6df0e

Please sign in to comment.