From 716397819d009d354a1522de74901a4c62bc2e4f Mon Sep 17 00:00:00 2001 From: Lord89James Date: Sat, 26 Jan 2013 17:00:15 +0100 Subject: [PATCH] Update mods/doors/init.lua Fix door's glitch in creative mode --- mods/doors/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/doors/init.lua b/mods/doors/init.lua index 3e239f05..cb8ef795 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -82,7 +82,9 @@ function doors:register_door(name, def) meta:set_string("infotext", "Owned by "..pn) end - itemstack:take_item() + if not minetest.setting_getbool("creative_mode") then + itemstack:take_item() + end return itemstack end, })