diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-12-26 12:39:28 +0000 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-12-30 12:26:44 +0000 |
commit | 7d7ccf5c0f3d8689519629282d72b1fea8f4bf30 (patch) | |
tree | e387cdbfcb51bcb3e3dab6593ed8e6279331d779 /builtin | |
parent | badecfa47106954656bb34994433730e4ea3714c (diff) | |
download | minetest-7d7ccf5c0f3d8689519629282d72b1fea8f4bf30.tar.gz minetest-7d7ccf5c0f3d8689519629282d72b1fea8f4bf30.tar.bz2 minetest-7d7ccf5c0f3d8689519629282d72b1fea8f4bf30.zip |
Fix installed modpacks not being found correctly
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/mainmenu/dlg_contentstore.lua | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/builtin/mainmenu/dlg_contentstore.lua b/builtin/mainmenu/dlg_contentstore.lua index 6490e67f1..bab2c73f3 100644 --- a/builtin/mainmenu/dlg_contentstore.lua +++ b/builtin/mainmenu/dlg_contentstore.lua @@ -305,18 +305,24 @@ function store.update_paths() local mod_hash = {} pkgmgr.refresh_globals() for _, mod in pairs(pkgmgr.global_mods:get_list()) do - mod_hash[mod.name] = mod + if mod.author then + mod_hash[mod.name] = mod + end end local game_hash = {} pkgmgr.update_gamelist() for _, game in pairs(pkgmgr.games) do - game_hash[game.id] = game + if game.author then + game_hash[game.id] = game + end end local txp_hash = {} for _, txp in pairs(pkgmgr.get_texture_packs()) do - txp_hash[txp.name] = txp + if txp.author then + txp_hash[txp.name] = txp + end end for _, package in pairs(store.packages_full) do |