Don't remove door when placed in Creative Mode

This commit is contained in:
Wuzzy 2019-12-04 17:53:09 +01:00
parent 18663dcff5
commit e441a2c1b3

View File

@ -85,7 +85,9 @@ function door.register_door(name, def)
minetest.get_meta(pt2):set_int("right", 1)
end
itemstack:take_item()
if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end
return itemstack
end,