two parentheses. all it took to fix it. GRRR

This commit is contained in:
NewGarbo 2016-02-04 23:42:27 +00:00
parent 8c1ae12d19
commit f5d826a2cb

View File

@ -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