doors: Fix craftitem not listed in inventory (#1683)

Fixes bug caused by b847888
This commit is contained in:
SmallJoker 2017-04-02 10:01:01 +02:00 committed by GitHub
parent 5fe831ed13
commit b377aaa50d

View File

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