mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-17 18:34:23 +01:00
Fixed particles not being removed when attached to a projectile
This commit is contained in:
parent
6337b86219
commit
878ed2563b
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ public class ParticleHandle {
|
|||
}
|
||||
|
||||
public Optional<Caster<?>> get() {
|
||||
caster = caster.filter(r -> r.get() != null && r.get().getSpellSlot().contains(effect));
|
||||
caster = caster.filter(r -> r.get() != null && r.get().getSpellSlot().contains(effect) && r.get().getEntity().isAlive());
|
||||
return caster.map(WeakReference::get);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue