Skip to content

Commit 9542d11

Browse files
sofarparamat
authored andcommittedJan 5, 2016
Fix endless trapdoor bug.
Closes #770 - thanks to @tenplus1, @kilbith
1 parent 7488f48 commit 9542d11

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

Diff for: ‎mods/doors/init.lua

+1-4
Original file line numberDiff line numberDiff line change
@@ -467,10 +467,7 @@ function doors.register_trapdoor(name, def)
467467
meta:set_string("doors_owner", pn)
468468
meta:set_string("infotext", "Owned by "..pn)
469469

470-
if not minetest.setting_getbool("creative_mode") then
471-
return true
472-
end
473-
return false
470+
return minetest.setting_getbool("creative_mode")
474471
end
475472
end
476473

0 commit comments

Comments
 (0)
Please sign in to comment.