summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-03-31 16:32:17 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2018-03-31 16:32:17 +0100
commitc4e88fc332d107e050b8a3111b21e7f9fc04fad6 (patch)
tree7605f6aefbf442faa4609bf1078484d60506103d /init.lua
parentabc54e9d5af1837dadc20714ec17f49826bb4314 (diff)
added custom groups to register_plant food craftitem
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 1bb33c9..6345841 100644
--- a/init.lua
+++ b/init.lua
@@ -513,6 +513,7 @@ farming.register_plant = function(name, def)
minetest.register_craftitem(":" .. mname .. ":" .. pname, {
description = pname:gsub("^%l", string.upper),
inventory_image = mname .. "_" .. pname .. ".png",
+ groups = def.groups or {flammable = 2},
})
-- Register growing steps