fix for missing param2

master
Juraj Vajda 2018-12-02 11:25:25 -05:00
parent 63595c26a9
commit 7e2ea5b1d2
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,10 @@ end
-- @return nil if node doesn't exists or nodename with mode prefix
-- @see https://github.com/Uberi/Minetest-WorldEdit
function x_marketplace.normalize_nodename(nodename)
if not nodename then
return false
end
nodename = nodename:gsub("^%s*(.-)%s*$", "%1") -- strip spaces
if nodename == "" then return nil end