diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/siege/weapon/Catapult.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/siege/weapon/Catapult.java index 5975eb405..b4251d8a1 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/siege/weapon/Catapult.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/siege/weapon/Catapult.java @@ -170,6 +170,8 @@ public class Catapult extends SiegeWeapon return; } + System.out.println(Math.toDegrees(((ArmorStand) getEntity("WEAPON")).getHeadPose().getY()) + ", " + getPoint(Math.toDegrees(((ArmorStand) getEntity("WEAPON")).getHeadPose().getY()))); + ArmorStand stand = (ArmorStand) getEntity("Point_" + getPoint(Math.toDegrees(((ArmorStand) getEntity("WEAPON")).getHeadPose().getY()))); stand.setPassenger(getRider()); @@ -196,7 +198,7 @@ public class Catapult extends SiegeWeapon private int getPoint(double yaw) { - return ((int) yaw) / 360 / 24; + return ((int) yaw) / (360 / 24); } @Override