We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e76f03c commit e8adc49Copy full SHA for e8adc49
src/inventory/ArmorInventory.php
@@ -82,7 +82,7 @@ public function setBoots(Item $boots) : void{
82
}
83
84
private function validate(Inventory $inventory, Item $item, int $slot) : ?TransactionValidationException{
85
- if($item instanceof Armor && $item->getArmorSlot() === $slot){
+ if($item instanceof Armor){
86
if($item->getArmorSlot() !== $slot){
87
return new TransactionValidationException("Armor item is in wrong slot");
88
0 commit comments