mirror of
https://github.com/rubenwardy/food.git
synced 2024-11-14 06:10:36 +01:00
Assignment to undeclared global
This commit is contained in:
parent
f1dcbbb7c8
commit
2897fe334f
|
@ -41,7 +41,7 @@ function food.support(group, item)
|
|||
if idx <= 1 then
|
||||
error("[Food Error] food.support - error in item name ('" .. item .. "')")
|
||||
end
|
||||
mod = string.sub(item, 1, idx - 1)
|
||||
local mod = string.sub(item, 1, idx - 1)
|
||||
|
||||
if not minetest.get_modpath(mod) then
|
||||
if food.debug then
|
||||
|
@ -60,7 +60,7 @@ function food.support(group, item)
|
|||
food.disable(group)
|
||||
|
||||
-- Add group
|
||||
g = {}
|
||||
local g = {}
|
||||
if data.groups then
|
||||
for k, v in pairs(data.groups) do
|
||||
g[k] = v
|
||||
|
|
Loading…
Reference in New Issue
Block a user