Set the spell as dead when removing it

This commit is contained in:
Sollace 2024-09-19 23:26:23 +01:00
parent 420f78eaaf
commit 92ad502fa7
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -114,6 +114,7 @@ class MultiSpellSlot implements SpellSlots, NbtSerialisable {
} else { } else {
Spell s = spell.get(); Spell s = spell.get();
if (s != null) { if (s != null) {
s.setDead();
s.tickDying(owner); s.tickDying(owner);
if (s.isDead()) { if (s.isDead()) {
s.destroy(owner); s.destroy(owner);