mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-21 18:11:11 +00:00
Fix Bug in modname guessing resulting in undefined modname
This commit is contained in:
parent
07fb257c04
commit
60225be7fa
1 changed files with 5 additions and 1 deletions
|
@ -151,7 +151,11 @@ function modmgr.parse_register_line(line)
|
||||||
local pos3 = item:find(":")
|
local pos3 = item:find(":")
|
||||||
|
|
||||||
if pos3 ~= nil then
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue