mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 03:06:55 +00:00
Revert Armor then Inventory instead of Inventory then Armor on failed transaction
This commit is contained in:
@ -141,10 +141,10 @@ class SimpleTransactionGroup implements TransactionGroup{
|
||||
Server::getInstance()->getPluginManager()->callEvent($ev = new InventoryTransactionEvent($this));
|
||||
if($ev->isCancelled()){
|
||||
foreach($this->inventories as $inventory){
|
||||
$inventory->sendContents($inventory->getViewers());
|
||||
if($inventory instanceof PlayerInventory){
|
||||
$inventory->sendArmorContents($inventory->getViewers());
|
||||
$inventory->sendArmorContents($this->getSource());
|
||||
}
|
||||
$inventory->sendContents($this->getSource());
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user