1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-09-28 22:50:20 +02:00

Fix endless trapdoor bug.

Closes #770 - thanks to @tenplus1, @kilbith
This commit is contained in:
Auke Kok 2016-01-05 07:16:42 -08:00 committed by paramat
parent 7488f483c7
commit 9542d119f6

View File

@ -467,10 +467,7 @@ function doors.register_trapdoor(name, def)
meta:set_string("doors_owner", pn) meta:set_string("doors_owner", pn)
meta:set_string("infotext", "Owned by "..pn) meta:set_string("infotext", "Owned by "..pn)
if not minetest.setting_getbool("creative_mode") then return minetest.setting_getbool("creative_mode")
return true
end
return false
end end
end end