1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-23 07:10:19 +01:00

Fix incorrectly negated comparisons

This commit is contained in:
Lars Mueller 2022-03-26 19:55:12 +01:00
parent d294ef757e
commit 5549b9585d
2 changed files with 2 additions and 2 deletions

View File

@ -398,7 +398,7 @@ minetest.register_craftitem("carts:cart", {
pointed_thing) or itemstack
end
if not pointed_thing.type == "node" then
if pointed_thing.type ~= "node" then
return
end
if carts:is_rail(pointed_thing.under) then

View File

@ -260,7 +260,7 @@ function doors.register(name, def)
on_place = function(itemstack, placer, pointed_thing)
local pos
if not pointed_thing.type == "node" then
if pointed_thing.type ~= "node" then
return itemstack
end