Fixed spells not being cleared when respawning

This commit is contained in:
Sollace 2021-03-03 20:05:52 +02:00
parent c9670a3d3c
commit d172511777

View file

@ -410,6 +410,7 @@ public class Pony extends Living<PlayerEntity> implements Transmittable, Copieab
if (!oldPlayer.getEntity().removed) {
setSpell(oldPlayer.getSpellSlot().get(true).orElse(null));
}
oldPlayer.setSpell(null);
setSpecies(oldPlayer.getSpecies());
setDirty();
}