mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-12 03:59:06 +00:00
Fixed duplicate instances occuring in the HCS
This commit is contained in:
parent
fa77e46c3e
commit
6bc5d6ade0
2 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||||
|
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue