Fixed sphere particles not respawning at long distances

This commit is contained in:
Sollace 2019-02-06 10:32:26 +02:00
parent 6507169c7e
commit 0614d73072

View file

@ -46,7 +46,7 @@ public class SpellShield extends AbstractSpell.RangedAreaSpell {
}); });
particleEffect.filter(IAttachableParticle::isStillAlive).orElseGet(() -> { particleEffect.filter(IAttachableParticle::isStillAlive).orElseGet(() -> {
particleEffect = Particles.instance().spawnParticle(UParticles.SPHERE, false, source.getOriginVector(), 0, 0, 0, radius, getTint(), 30); particleEffect = Particles.instance().spawnParticle(UParticles.SPHERE, true, source.getOriginVector(), 0, 0, 0, radius, getTint(), 30);
particleEffect.ifPresent(p -> p.attachTo(source)); particleEffect.ifPresent(p -> p.attachTo(source));
return null; return null;