fix for missing param2
parent
63595c26a9
commit
7e2ea5b1d2
4
api.lua
4
api.lua
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue