mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-19 01:44:06 +00:00
InventoryTransaction: sync inventories before throwing validation exception to caller
fixes #3226 really the transaction shouldn't be handling inventory sync at all, but that's a job for another commit.
This commit is contained in:
parent
8c5a81cf5c
commit
2dc3cf8162
@ -293,7 +293,12 @@ class InventoryTransaction{
|
|||||||
|
|
||||||
$this->shuffleActions();
|
$this->shuffleActions();
|
||||||
|
|
||||||
$this->validate();
|
try{
|
||||||
|
$this->validate();
|
||||||
|
}catch(TransactionValidationException $e){
|
||||||
|
$this->sendInventories();
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
|
|
||||||
if(!$this->callExecuteEvent()){
|
if(!$this->callExecuteEvent()){
|
||||||
$this->sendInventories();
|
$this->sendInventories();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user