Update mods/doors/init.lua 113/head
authorLord89James <neftali_dtctv@hotmail.com>
Sat, 26 Jan 2013 16:00:15 +0000 (17:00 +0100)
committerLord89James <neftali_dtctv@hotmail.com>
Sat, 26 Jan 2013 16:00:15 +0000 (17:00 +0100)
Fix door's glitch in creative mode

mods/doors/init.lua

index 3e239f052fad1acda48755ca170ebe27e7b28046..cb8ef795e0a3b978ec5cf4e242339a554cf42126 100644 (file)
@@ -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,
        })