forked from nalc/nalc_game
Fixed invalid check. This fixes minetest/minetest_game#609
This commit is contained in:
parent
be4dd6479d
commit
35de5241f4
|
@ -129,7 +129,7 @@ function doors.register_door(name, def)
|
||||||
|
|
||||||
local function on_rightclick(pos, dir, check_name, replace, replace_dir, params)
|
local function on_rightclick(pos, dir, check_name, replace, replace_dir, params)
|
||||||
pos.y = pos.y+dir
|
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
|
return
|
||||||
end
|
end
|
||||||
local p2 = minetest.get_node(pos).param2
|
local p2 = minetest.get_node(pos).param2
|
||||||
|
|
Loading…
Reference in New Issue
Block a user