diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/gui/base/SimulatorBaseGui.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/gui/base/SimulatorBaseGui.java index 65bee3de..4e70c08c 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/gui/base/SimulatorBaseGui.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/gui/base/SimulatorBaseGui.java @@ -47,7 +47,7 @@ public abstract class SimulatorBaseGui { public final void open() { String newTitle = title(); - String originalTitle = TrickyTrialsWrapper.impl.getInventoryTitle(player.getOpenInventory()); + String originalTitle = player.getOpenInventory().getTitle(); if (inv != null && (Core.getVersion() > 19 || newTitle.equals(originalTitle))) { // TODO: Flickering is better but not gone! diff --git a/SpigotCore/SpigotCore_9/src/de/steamwar/core/BountifulWrapper9.java b/SpigotCore/SpigotCore_9/src/de/steamwar/core/BountifulWrapper9.java index b4ae9845..55905ce5 100644 --- a/SpigotCore/SpigotCore_9/src/de/steamwar/core/BountifulWrapper9.java +++ b/SpigotCore/SpigotCore_9/src/de/steamwar/core/BountifulWrapper9.java @@ -74,8 +74,10 @@ public class BountifulWrapper9 implements BountifulWrapper.IBountifulWrapper { posX.set(packet, x); posY.set(packet, y); posZ.set(packet, z); - lookPitch.set(packet, (int)(pitch*256/360)); - lookYaw.set(packet, (int)(yaw*256/360)); + 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); }; }