From 66bdfc0e1ac63af58af9d51999d9ad1cd0f287be Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 9 Oct 2022 00:29:19 +0200 Subject: [PATCH] Fixed magic projectiles not triggering the destroy event on their spells when being destroyed --- .../unicopia/projectile/MagicProjectileEntity.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/projectile/MagicProjectileEntity.java b/src/main/java/com/minelittlepony/unicopia/projectile/MagicProjectileEntity.java index f499be22..ea37535f 100644 --- a/src/main/java/com/minelittlepony/unicopia/projectile/MagicProjectileEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/projectile/MagicProjectileEntity.java @@ -25,6 +25,7 @@ import com.minelittlepony.unicopia.network.datasync.EffectSync; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityType; import net.minecraft.entity.LivingEntity; +import net.minecraft.entity.Entity.RemovalReason; import net.minecraft.entity.damage.DamageSource; import net.minecraft.entity.data.DataTracker; import net.minecraft.entity.data.TrackedData; @@ -263,6 +264,12 @@ public class MagicProjectileEntity extends ThrownItemEntity implements Caster