From e4b9ff0373457b1b0f0a711b530de7d13a66b689 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 18 Apr 2014 08:49:12 +0100 Subject: [PATCH] override function fix if no groups --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index e1b0cd9..8220529 100644 --- a/init.lua +++ b/init.lua @@ -45,9 +45,11 @@ function food.support(group,mod,item) -- Need to copy this table, not modify it in place, otherwise it can change -- the groups for ALL craftitems that use the default groups. g = {} + if data.groups then for k, v in pairs(data.groups) do g[k] = v end + end g["food_"..group] = 1 minetest.override_item(item, {groups = g})