Skip to content

Commit

Permalink
Fix installed modpacks not being found correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Dec 30, 2018
1 parent badecfa commit 7d7ccf5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions builtin/mainmenu/dlg_contentstore.lua
Expand Up @@ -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
Expand Down

0 comments on commit 7d7ccf5

Please sign in to comment.