mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-01-12 01:48:31 +00:00
Fixed a typo in HorizontalVelocityChangeEvent
`getDistanceTravelled()` was renamed to `getDistanceTraveled()` to respect proper English spelling.
This commit is contained in:
parent
b67d3d2e0a
commit
fa77e46c3e
2 changed files with 2 additions and 2 deletions
src/com/projectkorra/ProjectKorra
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ public class HorizontalVelocityChangeEvent extends Event implements Cancellable
|
|||
return end;
|
||||
}
|
||||
|
||||
public double getDistanceTravelled()
|
||||
public double getDistanceTraveled()
|
||||
{
|
||||
return start.distance(end);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue