Fix infinite slowness
This commit is contained in:
parent
5ed7be68d9
commit
fc258d95b9
@ -32,7 +32,7 @@ public class BuffRooting extends Buff<Player>
|
||||
public void onApply()
|
||||
{
|
||||
UtilAction.zeroVelocity(_entity);
|
||||
_entity.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, Integer.MAX_VALUE, 3));
|
||||
_entity.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, (int) (_duration / 50D), 3));
|
||||
UtilTextMiddle.display("", C.cRed + "Rooted", 10, 20, 10, (Player) _entity);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user