Skip to content

Commit 7d7ccf5

Browse files
committedDec 30, 2018
Fix installed modpacks not being found correctly
1 parent badecfa commit 7d7ccf5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed
 

‎builtin/mainmenu/dlg_contentstore.lua

+9-3
Original file line numberDiff line numberDiff line change
@@ -305,18 +305,24 @@ function store.update_paths()
305305
local mod_hash = {}
306306
pkgmgr.refresh_globals()
307307
for _, mod in pairs(pkgmgr.global_mods:get_list()) do
308-
mod_hash[mod.name] = mod
308+
if mod.author then
309+
mod_hash[mod.name] = mod
310+
end
309311
end
310312

311313
local game_hash = {}
312314
pkgmgr.update_gamelist()
313315
for _, game in pairs(pkgmgr.games) do
314-
game_hash[game.id] = game
316+
if game.author then
317+
game_hash[game.id] = game
318+
end
315319
end
316320

317321
local txp_hash = {}
318322
for _, txp in pairs(pkgmgr.get_texture_packs()) do
319-
txp_hash[txp.name] = txp
323+
if txp.author then
324+
txp_hash[txp.name] = txp
325+
end
320326
end
321327

322328
for _, package in pairs(store.packages_full) do

0 commit comments

Comments
 (0)
Please sign in to comment.