mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
Using !== instead of != in recipe checks
This commit is contained in:
parent
71e556a181
commit
6fa0ef652e
@ -268,12 +268,12 @@ class CraftingRecipes{
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$oitem = $recipeItems[$item[0]];
|
$oitem = $recipeItems[$item[0]];
|
||||||
if(($oitem[1] != $item[1] and $item[1] !== false) or $oitem[2] != $item[2]){
|
if(($oitem[1] !== $item[1] and $item[1] !== false) or $oitem[2] !== $item[2]){
|
||||||
$continue = false;
|
$continue = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($continue === false or $craftItem[0] != $recipe[1][0] or $recipe[1][1] != $recipe[1][1] or $recipe[1][2] != $recipe[1][2]){
|
if($continue === false or $craftItem[0] !== $recipe[1][0] or $recipe[1][1] !== $recipe[1][1] or $recipe[1][2] !== $recipe[1][2]){
|
||||||
$continue = false;
|
$continue = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user