Update to 1.21.3

This commit is contained in:
Moulberry committed 2024-11-14 03:55:01 +01:00
1 parent bc06f67861
commit 8c02fd7430
56 files changed
+609 -573

No files matched your search

@@ -43,9 +43,9 @@ public class PacketHelper {
serverEntity.entity = entity;
serverEntity.positionCodec.setBase(entity.trackingPosition());
serverEntity.lastSentMovement = entity.getDeltaMovement();
serverEntity.lastSentYRot = Mth.floor((entity.getYRot() * 256.0f / 360.0f));
serverEntity.lastSentXRot = Mth.floor((entity.getXRot() * 256.0f / 360.0f));
serverEntity.lastSentYHeadRot = Mth.floor((entity.getYHeadRot() * 256.0f / 360.0f));
serverEntity.lastSentYRot = (byte) Mth.floor((entity.getYRot() * 256.0f / 360.0f));
serverEntity.lastSentXRot = (byte) Mth.floor((entity.getXRot() * 256.0f / 360.0f));
serverEntity.lastSentYHeadRot = (byte) Mth.floor((entity.getYHeadRot() * 256.0f / 360.0f));
serverEntity.wasOnGround = entity.onGround();
serverEntity.trackedDataValues = entity.getEntityData().getNonDefaultValues();
} catch (Exception e) {}