rotation fix

This commit is contained in:
NewGarbo 2016-02-04 23:11:51 +00:00
parent 03da4485b3
commit 16012285e0
2 changed files with 2 additions and 9 deletions

View File

@ -170,9 +170,7 @@ public class Catapult extends SiegeWeapon
return;
}
System.out.println(getPoint(_yaw));
ArmorStand stand = (ArmorStand) getEntity("Point_" + getPoint(_yaw));
ArmorStand stand = (ArmorStand) getEntity("Point_" + getPoint(Math.toDegrees(((ArmorStand) getEntity("WEAPON")).getHeadPose().getY())));
stand.setPassenger(getRider());
}
@ -184,7 +182,7 @@ public class Catapult extends SiegeWeapon
protected boolean OverrideMount(Player player)
{
ArmorStand stand = (ArmorStand) getEntity("Point_" + getPoint(_yaw));
ArmorStand stand = (ArmorStand) getEntity("Point_" + getPoint(Math.toDegrees(((ArmorStand) getEntity("WEAPON")).getHeadPose().getY())));
stand.setPassenger(player);

View File

@ -211,11 +211,6 @@ public abstract class SiegeWeapon implements Listener
ArmorStand armorStand = (ArmorStand) getEntity("WEAPON");
double standYaw = _yaw % 360;
if (getRider() == null)
{
return;
}
if (getRider() != null)
{
double riderYaw = (getRider().getLocation().getYaw() + (_invertRotation ? 180 : 0)) % 360;