diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/LightSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/LightSpell.java index 27c08931..18ff18ee 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/LightSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/LightSpell.java @@ -73,6 +73,16 @@ public class LightSpell extends AbstractSpell { return true; } + @Override + public void onDestroyed(Caster caster) { + lights.forEach(ref -> { + ref.ifPresent(caster.getWorld(), e -> { + e.world.sendEntityStatus(e, (byte)60); + e.discard(); + }); + }); + } + @Override public void toNBT(NbtCompound compound) { super.toNBT(compound);