Fixed invalid check. This fixes minetest/minetest_game#609
authorChristian Wischenbart <c.wischenbart@bitoxide.com>
Wed, 5 Aug 2015 20:20:41 +0000 (22:20 +0200)
committerNovatux <nathanael.courant@laposte.net>
Tue, 11 Aug 2015 16:56:15 +0000 (18:56 +0200)
mods/doors/init.lua

index a553565480529ecc59f4e9ab681b56f804986da2..6a5ee24f4075fb1539a6a151e7cc737c1a704fbc 100644 (file)
@@ -129,7 +129,7 @@ function doors.register_door(name, def)
 
        local function on_rightclick(pos, dir, check_name, replace, replace_dir, params)
                pos.y = pos.y+dir
-               if not minetest.get_node(pos).name == check_name then
+               if minetest.get_node(pos).name ~= check_name then
                        return
                end
                local p2 = minetest.get_node(pos).param2