forked from minetest/minetest_game
Fix incorrectly negated comparisons
This commit is contained in:
parent
d294ef757e
commit
5549b9585d
@ -398,7 +398,7 @@ minetest.register_craftitem("carts:cart", {
|
|||||||
pointed_thing) or itemstack
|
pointed_thing) or itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
if not pointed_thing.type == "node" then
|
if pointed_thing.type ~= "node" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if carts:is_rail(pointed_thing.under) then
|
if carts:is_rail(pointed_thing.under) then
|
||||||
|
@ -260,7 +260,7 @@ function doors.register(name, def)
|
|||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
local pos
|
local pos
|
||||||
|
|
||||||
if not pointed_thing.type == "node" then
|
if pointed_thing.type ~= "node" then
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user