forked from minetest-mods/mesecons
Fix error prone negation reported by luacheck
This commit is contained in:
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user