Fixed spells being carried over through death

This commit is contained in:
Sollace 2020-10-09 12:59:54 +02:00
parent 3a22954baa
commit 5152f7a4d3

View file

@ -436,7 +436,9 @@ public class Pony implements Caster<PlayerEntity>, Equine<PlayerEntity>, Transmi
@Override
public void copyFrom(Pony oldPlayer) {
speciesPersisted = oldPlayer.speciesPersisted;
if (!oldPlayer.getEntity().removed) {
setSpell(oldPlayer.getSpell(true));
}
setSpecies(oldPlayer.getSpecies());
setDirty();
}