forked from mtcontrib/food
Fix a warning triggered by a variable which was not declared as local.
This commit is contained in:
parent
dbb7b9bb65
commit
13f02494d0
@ -98,7 +98,7 @@ function minetest.register_node(name, def)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function food.strip_name(name)
|
function food.strip_name(name)
|
||||||
res = name:gsub('%"', '')
|
local res = name:gsub('%"', '')
|
||||||
if res:sub(1, 1) == ":" then
|
if res:sub(1, 1) == ":" then
|
||||||
res = res:sub(2, #res)
|
res = res:sub(2, #res)
|
||||||
--table.concat{res:sub(1, 1-1), "", res:sub(1+1)}
|
--table.concat{res:sub(1, 1-1), "", res:sub(1+1)}
|
||||||
|
Loading…
Reference in New Issue
Block a user