Fix ignored mod.conf mod name for world.mt (broken by e8eaab6)
authorSmallJoker <mk939@ymail.com>
Sat, 15 Dec 2018 08:01:00 +0000 (09:01 +0100)
committerSmallJoker <mk939@ymail.com>
Sat, 15 Dec 2018 08:01:00 +0000 (09:01 +0100)
Patch supplied by @pgimeno. Thank you.

builtin/mainmenu/pkgmgr.lua

index 482a21e373e210301d225b254099d2956ad51012..ebd8ece6b7dee88aa8c96b4e212ee28a246c66ee 100644 (file)
@@ -25,7 +25,7 @@ function get_mods(path,retval,modpack)
                        local toadd = {}
                        retval[#retval + 1] = toadd
 
-                       local mod_conf = Settings(prefix .. "mod.conf"):to_table()
+                       local mod_conf = Settings(prefix .. DIR_DELIM .. "mod.conf"):to_table()
                        if mod_conf.name then
                                name = mod_conf.name
                        end