From fa77e46c3e88e16890e219c20cbf460b41ccaf38 Mon Sep 17 00:00:00 2001 From: Brendan Wilson Date: Thu, 5 Feb 2015 17:56:54 -0500 Subject: [PATCH] Fixed a typo in HorizontalVelocityChangeEvent `getDistanceTravelled()` was renamed to `getDistanceTraveled()` to respect proper English spelling. --- src/com/projectkorra/ProjectKorra/PKListener.java | 2 +- .../ProjectKorra/Utilities/HorizontalVelocityChangeEvent.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }