mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
CraftingTransaction: remove impossible condition
this is never hit thanks to the logic flow above - recipeItems is never empty.
This commit is contained in:
parent
9a53de0903
commit
11b74868ee
@ -108,9 +108,6 @@ class CraftingTransaction extends InventoryTransaction{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($iterations < 1){
|
|
||||||
throw new TransactionValidationException("Tried to craft zero times");
|
|
||||||
}
|
|
||||||
if(count($txItems) > 0){
|
if(count($txItems) > 0){
|
||||||
//all items should be destroyed in this process
|
//all items should be destroyed in this process
|
||||||
throw new TransactionValidationException("Expected 0 ingredients left over, have " . count($txItems));
|
throw new TransactionValidationException("Expected 0 ingredients left over, have " . count($txItems));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user