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
1 changed files with 3 additions and 1 deletions

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,