mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 00:55:14 +00:00
Cover buffered inventory sync in timings
This commit is contained in:
@ -1146,7 +1146,12 @@ class NetworkSession{
|
||||
$attribute->markSynchronized();
|
||||
}
|
||||
}
|
||||
$this->invManager?->flushPendingUpdates();
|
||||
Timings::$playerNetworkSendInventorySync->startTiming();
|
||||
try{
|
||||
$this->invManager?->flushPendingUpdates();
|
||||
}finally{
|
||||
Timings::$playerNetworkSendInventorySync->stopTiming();
|
||||
}
|
||||
|
||||
$this->flushSendBuffer();
|
||||
}
|
||||
|
Reference in New Issue
Block a user