diff --git a/src/pocketmine/inventory/transaction/InventoryTransaction.php b/src/pocketmine/inventory/transaction/InventoryTransaction.php index 55219fac6..f5d67be74 100644 --- a/src/pocketmine/inventory/transaction/InventoryTransaction.php +++ b/src/pocketmine/inventory/transaction/InventoryTransaction.php @@ -75,6 +75,11 @@ class InventoryTransaction{ } /** + * Returns an **unordered** set of actions involved in this transaction. + * + * WARNING: This system is **explicitly designed NOT to care about ordering**. Any order seen in this set has NO + * significance and should not be relied on. + * * @return InventoryAction[] */ public function getActions() : array{ @@ -271,6 +276,8 @@ class InventoryTransaction{ return false; } + $this->shuffleActions(); + $this->validate(); if(!$this->callExecuteEvent()){