Skip to content

Commit

Permalink
Fix endless trapdoor bug.
Browse files Browse the repository at this point in the history
Closes #770 - thanks to @tenplus1, @kilbith
  • Loading branch information
sofar authored and paramat committed Jan 5, 2016
1 parent 7488f48 commit 9542d11
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mods/doors/init.lua
Expand Up @@ -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

Expand Down

0 comments on commit 9542d11

Please sign in to comment.