mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed spells not being cleared when respawning
This commit is contained in:
parent
c9670a3d3c
commit
d172511777
1 changed files with 1 additions and 0 deletions
|
@ -410,6 +410,7 @@ public class Pony extends Living<PlayerEntity> implements Transmittable, Copieab
|
||||||
if (!oldPlayer.getEntity().removed) {
|
if (!oldPlayer.getEntity().removed) {
|
||||||
setSpell(oldPlayer.getSpellSlot().get(true).orElse(null));
|
setSpell(oldPlayer.getSpellSlot().get(true).orElse(null));
|
||||||
}
|
}
|
||||||
|
oldPlayer.setSpell(null);
|
||||||
setSpecies(oldPlayer.getSpecies());
|
setSpecies(oldPlayer.getSpecies());
|
||||||
setDirty();
|
setDirty();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue