mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Fixes setPos to syncPacketPositionCodec (#8702)
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user