diff --git a/SpigotCore/SpigotCore_9/src/de/steamwar/core/BountifulWrapper9.java b/SpigotCore/SpigotCore_9/src/de/steamwar/core/BountifulWrapper9.java index 252f8675..fa126698 100644 --- a/SpigotCore/SpigotCore_9/src/de/steamwar/core/BountifulWrapper9.java +++ b/SpigotCore/SpigotCore_9/src/de/steamwar/core/BountifulWrapper9.java @@ -74,12 +74,13 @@ public class BountifulWrapper9 implements BountifulWrapper.IBountifulWrapper { posX.set(packet, x); posY.set(packet, y); posZ.set(packet, z); - byte pitchByte = (byte) (pitch*256/360); - int pitchInt = (int) (pitch*256/360); - lookPitch.set(packet, isByteClass ? pitchByte : pitchInt); - byte yawByte = (byte) (yaw*256/360); - int yawInt = (int) (yaw*256/360); - lookYaw.set(packet, isByteClass ? yawByte : yawInt); + if (isByteClass) { + lookPitch.set(packet, (byte) (pitch*256/360)); + lookYaw.set(packet, (byte) (yaw*256/360)); + } else { + lookPitch.set(packet, (int) (pitch*256/360)); + lookYaw.set(packet, (int) (yaw*256/360)); + } }; }