mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Fixed sphere particles not going away after a unicorn disables their spell
This commit is contained in:
parent
545bd3a34b
commit
6507169c7e
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ public class ParticleSphere extends Particle implements IAttachableParticle {
|
||||||
|
|
||||||
alpha = Math.min(1F, 1 - (float)particleAge/particleMaxAge) * baseAlpha;
|
alpha = Math.min(1F, 1 - (float)particleAge/particleMaxAge) * baseAlpha;
|
||||||
|
|
||||||
if (caster == null || caster.getEntity().isDead) {
|
if (caster == null || !caster.hasEffect() || caster.getEffect().getDead() || caster.getEntity().isDead) {
|
||||||
setExpired();
|
setExpired();
|
||||||
} else {
|
} else {
|
||||||
Entity e = caster.getEntity();
|
Entity e = caster.getEntity();
|
||||||
|
|
Loading…
Reference in a new issue