doors: Fix craftitem not listed in inventory (#1683)
authorSmallJoker <SmallJoker@users.noreply.github.com>
Sun, 2 Apr 2017 08:01:01 +0000 (10:01 +0200)
committerGitHub <noreply@github.com>
Sun, 2 Apr 2017 08:01:01 +0000 (10:01 +0200)
Fixes bug caused by b847888

mods/doors/init.lua

index 8ca26dac700274c6545192c00645aeca6bbcf8fc..3958444664fd077c0fb5d5799df3cf3fe8bc8ce9 100644 (file)
@@ -254,7 +254,7 @@ function doors.register(name, def)
        minetest.register_craftitem(":" .. name, {
                description = def.description,
                inventory_image = def.inventory_image,
-               groups = def.groups,
+               groups = table.copy(def.groups),
 
                on_place = function(itemstack, placer, pointed_thing)
                        local pos