Fixed invalid check. This fixes minetest/minetest_game#609

This commit is contained in:
Christian Wischenbart 2015-08-05 22:20:41 +02:00 committed by Novatux
parent be4dd6479d
commit 35de5241f4

View 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