mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Using !== instead of != in recipe checks
This commit is contained in:
parent
71e556a181
commit
6fa0ef652e
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue