setLocation should be synchronized

This commit is contained in:
Jesse Boyd 2019-07-17 22:00:00 +10:00
parent eff203c3b8
commit 505af853bd
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -436,8 +436,8 @@ public class BukkitChunk_1_14 extends IntFaweChunk<Chunk, BukkitQueue_1_14> {
}
entity.f(tag);
}
entity.setLocation(x, y, z, yaw, pitch);
synchronized (BukkitQueue_0.class) {
entity.setLocation(x, y, z, yaw, pitch);
nmsWorld.addEntity(entity, CreatureSpawnEvent.SpawnReason.CUSTOM);
}
}