mirror of
https://github.com/rubenwardy/food.git
synced 2024-11-15 23:00:33 +01:00
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
|
||||
|
||||
function food.strip_name(name)
|
||||
res = name:gsub('%"', '')
|
||||
local res = name:gsub('%"', '')
|
||||
if res:sub(1, 1) == ":" then
|
||||
res = res:sub(2, #res)
|
||||
--table.concat{res:sub(1, 1-1), "", res:sub(1+1)}
|
||||
|
|
Loading…
Reference in New Issue
Block a user