From 3a180547524f6358fe4dfafd6e989d5be2919cd4 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 2 Sep 2023 16:32:54 +0100 Subject: [PATCH] Prevent the temporary player from being ticked --- .../unicopia/ability/magic/spell/effect/MindSwapSpell.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/MindSwapSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/MindSwapSpell.java index 2127a819..c5ec2143 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/MindSwapSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/MindSwapSpell.java @@ -208,7 +208,12 @@ public class MindSwapSpell extends MimicSpell implements ProjectileDelegate.Enti } private static ServerPlayerEntity clonePlayer(ServerPlayerEntity player) { - ServerPlayerEntity clone = new ServerPlayerEntity(player.getServer(), player.getServerWorld(), player.getGameProfile()); + ServerPlayerEntity clone = new ServerPlayerEntity(player.getServer(), player.getServerWorld(), player.getGameProfile()) { + @Override + public void tick() { + discard(); + } + }; NbtCompound compound = player.writeNbt(new NbtCompound()); compound.remove("Dimension");