1
0
mirror of https://github.com/rubenwardy/food.git synced 2024-12-23 08:20:19 +01:00

Assignment to undeclared global

This commit is contained in:
rubenwardy 2014-12-20 20:08:45 +00:00
parent f1dcbbb7c8
commit 2897fe334f

View File

@ -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