mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
parent
11a7f02854
commit
ddcfccd7dd
@ -1343,7 +1343,8 @@ public class Entity implements Viewable, Tickable, Schedulable, Snapshotable, Ev
|
|||||||
lastSyncedPosition, onGround), this);
|
lastSyncedPosition, onGround), this);
|
||||||
} else if (viewChange) {
|
} else if (viewChange) {
|
||||||
PacketUtils.prepareViewablePacket(chunk, new EntityHeadLookPacket(getEntityId(), position.yaw()), this);
|
PacketUtils.prepareViewablePacket(chunk, new EntityHeadLookPacket(getEntityId(), position.yaw()), this);
|
||||||
PacketUtils.prepareViewablePacket(chunk, new EntityRotationPacket(getEntityId(), position.yaw(), position.pitch(), onGround), this);
|
PacketUtils.prepareViewablePacket(chunk, EntityPositionAndRotationPacket.getPacket(getEntityId(), position,
|
||||||
|
lastSyncedPosition, isOnGround()), this);
|
||||||
}
|
}
|
||||||
this.lastSyncedPosition = position;
|
this.lastSyncedPosition = position;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user