From d909ee47f139f7bf4d5d731bde933855d4d191b0 Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 23 May 2024 17:37:27 +0100 Subject: [PATCH] Fix dismiss animations on placed spells --- .../unicopia/entity/mob/CastSpellEntity.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java index 18280081..fbca955c 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/CastSpellEntity.java @@ -136,11 +136,10 @@ public class CastSpellEntity extends LightEmittingEntity implements Caster { - var entry = Ether.get(getWorld()).getOrCreate(spell, this); - if (entry.hasChanged()) { - //updatePositionAndAngles(getX(), getY(), getZ(), entry.getYaw(), entry.getPitch()); - } + Ether.get(getWorld()).getOrCreate(spell, this); }); + } else if (isDead()) { + spells.getSlots().clear(); } prevDeathTicks = deathTicks; @@ -152,7 +151,7 @@ public class CastSpellEntity extends LightEmittingEntity implements Caster