diff options
author | rubenwardy <anjayward@gmail.com> | 2014-04-18 08:49:12 +0100 |
---|---|---|
committer | rubenwardy <anjayward@gmail.com> | 2014-04-18 08:49:12 +0100 |
commit | e4b9ff0373457b1b0f0a711b530de7d13a66b689 (patch) | |
tree | d845a1271bdea50555b127ba5163cec4305832d3 | |
parent | dbcd373e30ff0c71cc25b29ad3d833704a2a43b4 (diff) |
override function fix if no groups
-rw-r--r-- | init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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}) |