mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-17 05:31:23 +01:00
Fix entity synchronization on join
This commit is contained in:
parent
c027d649cf
commit
3fa64d6b24
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user