From d17251177775f9728b6c9b339ffe4d0d5b26b26b Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 3 Mar 2021 20:05:52 +0200 Subject: [PATCH] Fixed spells not being cleared when respawning --- .../java/com/minelittlepony/unicopia/entity/player/Pony.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java b/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java index 189318c2..b8961e1b 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/player/Pony.java @@ -410,6 +410,7 @@ public class Pony extends Living implements Transmittable, Copieab if (!oldPlayer.getEntity().removed) { setSpell(oldPlayer.getSpellSlot().get(true).orElse(null)); } + oldPlayer.setSpell(null); setSpecies(oldPlayer.getSpecies()); setDirty(); }