diff --git a/mods/carts/cart_entity.lua b/mods/carts/cart_entity.lua index 8008bcfb..b3b4ae41 100644 --- a/mods/carts/cart_entity.lua +++ b/mods/carts/cart_entity.lua @@ -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 diff --git a/mods/doors/init.lua b/mods/doors/init.lua index 403ad5ab..0c0f0896 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -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