Skip to content

Commit

Permalink
update SlotChangeAction exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
ShockedPlot7560 committed Aug 22, 2024
1 parent 99bcbc0 commit 2a8eb2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inventory/transaction/action/SlotChangeAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function validate(Player $source) : void{
foreach($this->inventory->getSlotValidators() as $validator){
$ret = $validator->validate($this->inventory, $this->targetItem, $this->inventorySlot);
if($ret !== null){
throw new TransactionValidationException("Target item is not accepted by the inventory slot: " . $ret->getMessage(), 0, $ret);
throw new TransactionValidationException("Target item is not accepted by the inventory at slot #" . $this->inventorySlot . ": " . $ret->getMessage(), 0, $ret);
}
}
}
Expand Down

0 comments on commit 2a8eb2d

Please sign in to comment.