Super lock track method - Resolves GH-23

This commit is contained in:
Sotr
2018-07-13 21:17:50 +08:00
parent 9cfe108024
commit c50f6f2a68
4 changed files with 30 additions and 1 deletions

View File

@@ -745,7 +745,9 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
if (entity instanceof EntityPlayer) {
WorldServer worldServer = (WorldServer) entity.getWorld();
worldServer.tracker.untrackEntity(this);
worldServer.tracker.entriesLock.lock(); // Akarin
worldServer.tracker.track(this);
worldServer.tracker.entriesLock.unlock(); // Akarin
}
// Paper end