forked from mtcontrib/food
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
|
if idx <= 1 then
|
||||||
error("[Food Error] food.support - error in item name ('" .. item .. "')")
|
error("[Food Error] food.support - error in item name ('" .. item .. "')")
|
||||||
end
|
end
|
||||||
mod = string.sub(item, 1, idx - 1)
|
local mod = string.sub(item, 1, idx - 1)
|
||||||
|
|
||||||
if not minetest.get_modpath(mod) then
|
if not minetest.get_modpath(mod) then
|
||||||
if food.debug then
|
if food.debug then
|
||||||
|
@ -60,7 +60,7 @@ function food.support(group, item)
|
||||||
food.disable(group)
|
food.disable(group)
|
||||||
|
|
||||||
-- Add group
|
-- Add group
|
||||||
g = {}
|
local g = {}
|
||||||
if data.groups then
|
if data.groups then
|
||||||
for k, v in pairs(data.groups) do
|
for k, v in pairs(data.groups) do
|
||||||
g[k] = v
|
g[k] = v
|
||||||
|
|
Loading…
Reference in New Issue
Block a user