Fixed a typo in HorizontalVelocityChangeEvent

`getDistanceTravelled()` was renamed to `getDistanceTraveled()` to
respect proper English spelling.
This commit is contained in:
Brendan Wilson 2015-02-05 17:56:54 -05:00
parent b67d3d2e0a
commit fa77e46c3e
2 changed files with 2 additions and 2 deletions
src/com/projectkorra/ProjectKorra

View file

@ -69,7 +69,7 @@ public class PKListener implements Listener {
if(e.getEntity().getEntityId() != e.getInstigator().getEntityId())
{
double minimumDistance = plugin.getConfig().getDouble("Properties.HorizontalCollisionPhysics.WallDamageMinimumDistance");
double damage = ((e.getDistanceTravelled() - minimumDistance) < 0 ? 0 : e.getDistanceTravelled() - minimumDistance) / (e.getDifference().length());
double damage = ((e.getDistanceTraveled() - minimumDistance) < 0 ? 0 : e.getDistanceTraveled() - minimumDistance) / (e.getDifference().length());
Methods.damageEntity(e.getInstigator(), e.getEntity(), damage);
}
}

View file

@ -76,7 +76,7 @@ public class HorizontalVelocityChangeEvent extends Event implements Cancellable
return end;
}
public double getDistanceTravelled()
public double getDistanceTraveled()
{
return start.distance(end);
}