mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-12-02 17:08:00 +01:00
Set the spell as dead when removing it
This commit is contained in:
parent
420f78eaaf
commit
92ad502fa7
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue