Buffer slot and content syncing until the end of the tick

we may receive multiple requests in one tick (e.g. crafting in a batch)
This commit is contained in:
Dylan K. Taylor
2023-03-20 19:16:00 +00:00
parent e8085e22a0
commit ca6d51498f
4 changed files with 51 additions and 7 deletions

View File

@ -1219,6 +1219,7 @@ class NetworkSession{
$attribute->markSynchronized();
}
}
$this->invManager?->flushPendingUpdates();
$this->flushSendBuffer();
}