From: Auke Kok Date: Tue, 5 Jan 2016 15:16:42 +0000 (-0800) Subject: Fix endless trapdoor bug. X-Git-Tag: 0.4.14~164 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9542d119f609eba8cee422f6c5bcf6f0a112f12b;p=oweals%2Fminetest_game.git Fix endless trapdoor bug. Closes #770 - thanks to @tenplus1, @kilbith --- diff --git a/mods/doors/init.lua b/mods/doors/init.lua index eaf4986f..c3896d95 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -467,10 +467,7 @@ function doors.register_trapdoor(name, def) meta:set_string("doors_owner", pn) meta:set_string("infotext", "Owned by "..pn) - if not minetest.setting_getbool("creative_mode") then - return true - end - return false + return minetest.setting_getbool("creative_mode") end end