mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed spells not executing their on destroy handlers
This commit is contained in:
parent
37a7b08e45
commit
2016b7dd84
1 changed files with 3 additions and 1 deletions
|
@ -114,8 +114,10 @@ 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()) {
|
||||||
|
s.destroy(owner);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue