two parentheses. all it took to fix it. GRRR
This commit is contained in:
parent
8c1ae12d19
commit
f5d826a2cb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user