Cover buffered inventory sync in timings

This commit is contained in:
Dylan K. Taylor
2023-03-20 23:29:02 +00:00
parent ecc830a689
commit e7771d76f2
2 changed files with 10 additions and 1 deletions

View File

@ -1146,7 +1146,12 @@ class NetworkSession{
$attribute->markSynchronized();
}
}
$this->invManager?->flushPendingUpdates();
Timings::$playerNetworkSendInventorySync->startTiming();
try{
$this->invManager?->flushPendingUpdates();
}finally{
Timings::$playerNetworkSendInventorySync->stopTiming();
}
$this->flushSendBuffer();
}