diff --git a/hack/scripts/gui/mod-manager.lua b/hack/scripts/gui/mod-manager.lua index 2d0fefe..83e3027 100644 --- a/hack/scripts/gui/mod-manager.lua +++ b/hack/scripts/gui/mod-manager.lua @@ -114,7 +114,7 @@ function manager:init(args) if v~="." and v~=".." then local f,modData=pcall(dofile,dfhack.getHackPath().."/mods/".. v .. "/init.lua") if f then - mods[modData.loadnum]=modData + mods[modData.name]=modData modData.guard=modData.guard or {">>"..modData.name.." patch","<