Fixed duplicate instances occuring in the HCS

This commit is contained in:
Brendan Wilson 2015-02-06 11:20:37 -05:00
parent fa77e46c3e
commit 6bc5d6ade0
2 changed files with 2 additions and 0 deletions

View file

@ -30,6 +30,7 @@ public class HorizontalVelocityTracker
public HorizontalVelocityTracker(Entity e, Player instigator, long delay) public HorizontalVelocityTracker(Entity e, Player instigator, long delay)
{ {
remove(e);
entity = e; entity = e;
this.instigator = instigator; this.instigator = instigator;
fireTime = System.currentTimeMillis(); fireTime = System.currentTimeMillis();

View file

@ -91,6 +91,7 @@ public class Bloodbending {
return; return;
} }
Methods.damageEntity(player, target, 0); Methods.damageEntity(player, target, 0);
HorizontalVelocityTracker.remove(target);
Methods.breakBreathbendingHold(target); Methods.breakBreathbendingHold(target);
targetentities.put(target, target.getLocation().clone()); targetentities.put(target, target.getLocation().clone());
} }