Fixes setPos to syncPacketPositionCodec (#8702)

This commit is contained in:
AzureDoom authored and GitHub committed 2022-06-09 11:40:21 -07:00
1 parent 38df3d2a15
commit 7c5e95222e
1 file changed
+5 -1
@@ -142,7 +142,11 @@ public class PlayMessages
return;
}
e.setPos(msg.posX, msg.posY, msg.posZ);
/*
* Sets the postiion on the client, Mirrors what
* Entity#recreateFromPacket and LivingEntity#recreateFromPacket does.
*/
e.syncPacketPositionCodec(msg.posX, msg.posY, msg.posZ);
e.absMoveTo(msg.posX, msg.posY, msg.posZ, (msg.yaw * 360) / 256.0F, (msg.pitch * 360) / 256.0F);
e.setYHeadRot((msg.headYaw * 360) / 256.0F);
e.setYBodyRot((msg.headYaw * 360) / 256.0F);