Fix yaw/pitch order in SpawnEntityPacket (#1436)

This commit is contained in:
Zak Shearman 2022-10-09 21:50:18 +01:00 committed by GitHub
parent 17ef1c2f57
commit 7eb9d3fdd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -29,8 +29,8 @@ public record SpawnEntityPacket(int entityId, @NotNull UUID uuid, int type,
writer.writeDouble(position.y());
writer.writeDouble(position.z());
writer.writeByte((byte) (position.yaw() * 256 / 360));
writer.writeByte((byte) (position.pitch() * 256 / 360));
writer.writeByte((byte) (position.yaw() * 256 / 360));
writer.writeByte((byte) (headRot * 256 / 360));
writer.writeVarInt(data);