diff options
author | sapier <Sapier at GMX dot net> | 2013-07-17 21:04:17 +0200 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-07-22 18:10:00 +0200 |
commit | 60225be7fa8418528002c5618795ee0f8d3512eb (patch) | |
tree | c1022035aef40d99810959b2d48b487870c86ed0 /builtin | |
parent | 07fb257c047407facfd96ca2a0eedef37abce548 (diff) | |
download | minetest-60225be7fa8418528002c5618795ee0f8d3512eb.tar.gz minetest-60225be7fa8418528002c5618795ee0f8d3512eb.tar.bz2 minetest-60225be7fa8418528002c5618795ee0f8d3512eb.zip |
Fix Bug in modname guessing resulting in undefined modname
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/modmgr.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/builtin/modmgr.lua b/builtin/modmgr.lua index bf71d8b1d..3256c3b9f 100644 --- a/builtin/modmgr.lua +++ b/builtin/modmgr.lua @@ -151,7 +151,11 @@ function modmgr.parse_register_line(line) local pos3 = item:find(":") if pos3 ~= nil then - return item:sub(1,pos3-1) + local retval = item:sub(1,pos3-1) + if retval ~= nil and + retval ~= "" then + return retval + end end end end |