Fix incorrectly negated comparisons

このコミットが含まれているのは:
Lars Mueller
2022-03-26 19:55:12 +01:00
コミット 5549b9585d
2個のファイルの変更2行の追加2行の削除

ファイルの表示

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

ファイルの表示

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