Replace disallowed operators in src/inventory/

This commit is contained in:
Dylan K. Taylor
2022-01-20 19:20:32 +00:00
parent b85fe0e72a
commit e986a0a4f2
3 changed files with 5 additions and 5 deletions

View File

@ -92,7 +92,7 @@ class CraftingTransaction extends InventoryTransaction{
$haveCount = 0;
foreach($txItems as $j => $txItem){
if($txItem->equals($recipeItem, !$wildcards or !$recipeItem->hasAnyDamageValue(), !$wildcards or $recipeItem->hasNamedTag())){
if($txItem->equals($recipeItem, !$wildcards || !$recipeItem->hasAnyDamageValue(), !$wildcards || $recipeItem->hasNamedTag())){
$haveCount += $txItem->getCount();
unset($txItems[$j]);
}