9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-25 09:59:15 +00:00

Don't parallel tick the tracker of entity

This commit is contained in:
hayanesuru
2025-05-08 17:03:07 +09:00
parent 8c0e3772fa
commit 152fbed3d1
2 changed files with 21 additions and 8 deletions

View File

@@ -67,7 +67,10 @@ public class MultithreadedTracker {
if (tracker == null) continue;
tracker.moonrise$tick(nearbyPlayers.getChunk(entity.chunkPosition()));
// Don't Parallel Tick Tracker of Entity
synchronized (tracker.sync) {
tracker.moonrise$tick(nearbyPlayers.getChunk(entity.chunkPosition()));
}
tracker.serverEntity.sendChanges();
}
});