Fix error prone negation reported by luacheck

This commit is contained in:
Desour 2022-03-30 21:41:51 +02:00 committed by sfan5
parent 399ee9f5b5
commit b630ff9443

@ -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