Skip to content

Commit

Permalink
Fix error prone negation reported by luacheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Desour authored and sfan5 committed Mar 30, 2022
1 parent 399ee9f commit b630ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesecons_doors/init.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- Modified, from minetest_game/mods/doors/init.lua
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 b630ff9

Please sign in to comment.