From: Lord89James Date: Sat, 26 Jan 2013 16:00:15 +0000 (+0100) Subject: Update mods/doors/init.lua X-Git-Tag: 0.4.5~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F113%2Fhead;p=oweals%2Fminetest_game.git Update mods/doors/init.lua Fix door's glitch in creative mode --- 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, })