Explorar o código

Fix incorrectly negated comparisons

Lars Mueller %!s(int64=2) %!d(string=hai) anos
pai
achega
5549b9585d
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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