mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +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
|
||||
public void copyFrom(Pony oldPlayer) {
|
||||
speciesPersisted = oldPlayer.speciesPersisted;
|
||||
setSpell(oldPlayer.getSpell(true));
|
||||
if (!oldPlayer.getEntity().removed) {
|
||||
setSpell(oldPlayer.getSpell(true));
|
||||
}
|
||||
setSpecies(oldPlayer.getSpecies());
|
||||
setDirty();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue