1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-06-29 23:01:00 +02:00

added custom groups to register_plant food craftitem

This commit is contained in:
TenPlus1
2018-03-31 16:32:17 +01:00
parent abc54e9d5a
commit c4e88fc332
2 changed files with 2 additions and 0 deletions

View File

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