mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +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 {
|
||||
Spell s = spell.get();
|
||||
if (s != null) {
|
||||
s.setDead();
|
||||
s.tickDying(owner);
|
||||
if (s.isDead()) {
|
||||
s.destroy(owner);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue