Skip to content
Permalink
Browse files
Fix endless trapdoor bug.
Closes #770 - thanks to @tenplus1, @kilbith
  • Loading branch information
sofar authored and paramat committed Jan 5, 2016
1 parent 7488f48 commit 9542d119f609eba8cee422f6c5bcf6f0a112f12b
Showing 1 changed file with 1 addition and 4 deletions.
@@ -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

0 comments on commit 9542d11

Please sign in to comment.