diff --git a/src/com/projectkorra/ProjectKorra/PKListener.java b/src/com/projectkorra/ProjectKorra/PKListener.java index 57b631e6..c56d9a34 100644 --- a/src/com/projectkorra/ProjectKorra/PKListener.java +++ b/src/com/projectkorra/ProjectKorra/PKListener.java @@ -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); } } diff --git a/src/com/projectkorra/ProjectKorra/Utilities/HorizontalVelocityChangeEvent.java b/src/com/projectkorra/ProjectKorra/Utilities/HorizontalVelocityChangeEvent.java index d3aa8d97..b000a4ea 100644 --- a/src/com/projectkorra/ProjectKorra/Utilities/HorizontalVelocityChangeEvent.java +++ b/src/com/projectkorra/ProjectKorra/Utilities/HorizontalVelocityChangeEvent.java @@ -76,7 +76,7 @@ public class HorizontalVelocityChangeEvent extends Event implements Cancellable return end; } - public double getDistanceTravelled() + public double getDistanceTraveled() { return start.distance(end); }