mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-12 11:21:15 +01:00
Synchronize updateAndAwait
This commit is contained in:
parent
0ca5e2ade6
commit
ab2fee2bac
@ -56,7 +56,7 @@ public final class ThreadDispatcher<P> {
|
||||
*
|
||||
* @param time the tick time in milliseconds
|
||||
*/
|
||||
public void updateAndAwait(long time) {
|
||||
public synchronized void updateAndAwait(long time) {
|
||||
// Update dispatcher
|
||||
this.updates.drain(update -> {
|
||||
if (update instanceof DispatchUpdate.PartitionLoad<P> chunkUpdate) {
|
||||
|
Loading…
Reference in New Issue
Block a user