From dfe7c389f6ba4fada70438bdb3304e5e0d123c06 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sun, 1 Dec 2024 22:36:12 +0100 Subject: [PATCH] Hotfix: Replays (Again!) --- .../src/de/steamwar/core/BountifulWrapper9.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SpigotCore/SpigotCore_9/src/de/steamwar/core/BountifulWrapper9.java b/SpigotCore/SpigotCore_9/src/de/steamwar/core/BountifulWrapper9.java index 5d663033..55e31925 100644 --- a/SpigotCore/SpigotCore_9/src/de/steamwar/core/BountifulWrapper9.java +++ b/SpigotCore/SpigotCore_9/src/de/steamwar/core/BountifulWrapper9.java @@ -74,10 +74,10 @@ public class BountifulWrapper9 implements BountifulWrapper.IBountifulWrapper { posX.set(packet, x); posY.set(packet, y); posZ.set(packet, z); - int pitchInt = (int) (pitch*256/360); - lookPitch.set(packet, isByteClass ? (byte) pitchInt : pitchInt); - int yawInt = (int) (yaw*256/360); - lookYaw.set(packet, isByteClass ? (byte) yawInt : yawInt); + byte pitchInt = (byte) (pitch*256/360); + lookPitch.set(packet, isByteClass ? pitchInt : (int) pitchInt); + byte yawInt = (byte) (yaw*256/360); + lookYaw.set(packet, isByteClass ? yawInt : (int) yawInt); }; }