Fix entity synchronization on join

This commit is contained in:
TheMode 2021-05-01 03:46:13 +02:00
parent c027d649cf
commit 3fa64d6b24

View File

@ -704,6 +704,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
} }
super.setInstance(instance, spawnPosition); super.setInstance(instance, spawnPosition);
this.lastSyncedPlayerPosition.set(position);
if (!position.isSimilar(spawnPosition) && !firstSpawn) { if (!position.isSimilar(spawnPosition) && !firstSpawn) {
// Player changed instance at a different position // Player changed instance at a different position