Browse Source

Fix incorrectly negated comparisons

Lars Mueller 2 years ago
parent
commit
5549b9585d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      mods/carts/cart_entity.lua
  2. 1 1
      mods/doors/init.lua

+ 1 - 1
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

+ 1 - 1
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