From e1d8bab479dcf286ae07da604586c4b6e6d292e0 Mon Sep 17 00:00:00 2001 From: Kotolegokot Date: Sat, 9 Feb 2013 12:07:02 +0600 Subject: [PATCH] Update doors --- 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 de021fc..a230b55 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -83,7 +83,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, })