CraftingTransaction: remove impossible condition

this is never hit thanks to the logic flow above - recipeItems is never empty.
This commit is contained in:
Dylan K. Taylor 2020-10-24 11:22:02 +01:00
parent 9a53de0903
commit 11b74868ee

View File

@ -108,9 +108,6 @@ class CraftingTransaction extends InventoryTransaction{
}
}
if($iterations < 1){
throw new TransactionValidationException("Tried to craft zero times");
}
if(count($txItems) > 0){
//all items should be destroyed in this process
throw new TransactionValidationException("Expected 0 ingredients left over, have " . count($txItems));