Skip to content

Commit

Permalink
Fixed invalid check. This fixes #609
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Wischenbart authored and Ekdohibs committed Aug 11, 2015
1 parent be4dd64 commit 35de524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/doors/init.lua
Expand Up @@ -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
Expand Down

0 comments on commit 35de524

Please sign in to comment.