1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 23:10:17 +01:00

Update mods/doors/init.lua

Fix door's glitch in creative mode
This commit is contained in:
Lord89James 2013-01-26 17:00:15 +01:00
parent 67fa74ac01
commit 716397819d

View 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,
})