Prechádzať zdrojové kódy

Fix incorrectly negated comparisons

Lars Mueller 2 rokov pred
rodič
commit
5549b9585d
2 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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