Skip to content
Snippets Groups Projects
Commit 71639781 authored by Lord89James's avatar Lord89James
Browse files

Update mods/doors/init.lua

Fix door's glitch in creative mode
parent 67fa74ac
No related branches found
No related tags found
No related merge requests found
......@@ -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,
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment