mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 23:27:59 +01:00
Fixed spells being carried over through death
This commit is contained in:
parent
3a22954baa
commit
5152f7a4d3
1 changed files with 3 additions and 1 deletions
|
@ -436,7 +436,9 @@ public class Pony implements Caster<PlayerEntity>, Equine<PlayerEntity>, Transmi
|
||||||
@Override
|
@Override
|
||||||
public void copyFrom(Pony oldPlayer) {
|
public void copyFrom(Pony oldPlayer) {
|
||||||
speciesPersisted = oldPlayer.speciesPersisted;
|
speciesPersisted = oldPlayer.speciesPersisted;
|
||||||
setSpell(oldPlayer.getSpell(true));
|
if (!oldPlayer.getEntity().removed) {
|
||||||
|
setSpell(oldPlayer.getSpell(true));
|
||||||
|
}
|
||||||
setSpecies(oldPlayer.getSpecies());
|
setSpecies(oldPlayer.getSpecies());
|
||||||
setDirty();
|
setDirty();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue