From 6507169c7ee7d0fa79ddd47c8db39af23adfe201 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 6 Feb 2019 10:32:03 +0200 Subject: [PATCH] Fixed sphere particles not going away after a unicorn disables their spell --- .../minelittlepony/unicopia/particle/client/ParticleSphere.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/particle/client/ParticleSphere.java b/src/main/java/com/minelittlepony/unicopia/particle/client/ParticleSphere.java index 4192931d..c5b15b23 100644 --- a/src/main/java/com/minelittlepony/unicopia/particle/client/ParticleSphere.java +++ b/src/main/java/com/minelittlepony/unicopia/particle/client/ParticleSphere.java @@ -54,7 +54,7 @@ public class ParticleSphere extends Particle implements IAttachableParticle { 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(); } else { Entity e = caster.getEntity();