mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Prevent the temporary player from being ticked
This commit is contained in:
parent
0e75b8e5ff
commit
3a18054752
1 changed files with 6 additions and 1 deletions
|
@ -208,7 +208,12 @@ public class MindSwapSpell extends MimicSpell implements ProjectileDelegate.Enti
|
||||||
}
|
}
|
||||||
|
|
||||||
private static ServerPlayerEntity clonePlayer(ServerPlayerEntity player) {
|
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());
|
NbtCompound compound = player.writeNbt(new NbtCompound());
|
||||||
compound.remove("Dimension");
|
compound.remove("Dimension");
|
||||||
|
|
Loading…
Reference in a new issue