forked from minetest/minetest_game
Update mods/doors/init.lua
Fix door's glitch in creative mode
This commit is contained in:
parent
67fa74ac01
commit
716397819d
@ -82,7 +82,9 @@ function doors:register_door(name, def)
|
|||||||
meta:set_string("infotext", "Owned by "..pn)
|
meta:set_string("infotext", "Owned by "..pn)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not minetest.setting_getbool("creative_mode") then
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user