doors: add groups to the door craftitem
authorcx384 <muelladresse84@web.de>
Tue, 28 Mar 2017 17:18:59 +0000 (19:18 +0200)
committerSmallJoker <mk939@ymail.com>
Wed, 29 Mar 2017 18:40:56 +0000 (20:40 +0200)
mods/doors/init.lua

index 974e9d3d5dce9ca9e398bcf184d0cb739af5f5c4..4ab40111931fa186e99bd0779e060f625e830500 100644 (file)
@@ -254,6 +254,7 @@ function doors.register(name, def)
        minetest.register_craftitem(":" .. name, {
                description = def.description,
                inventory_image = def.inventory_image,
+               groups = def.groups,
 
                on_place = function(itemstack, placer, pointed_thing)
                        local pos