From 836948520f04d26aa298d8546aeb700b9eeea178 Mon Sep 17 00:00:00 2001 From: ThebestkillerTBK <2593828650@qq.com> Date: Fri, 16 Dec 2022 18:16:31 +0800 Subject: [PATCH] fake player fixed --- .../utils/entity/fakeplayer/FakePlayerEntity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/meteordevelopment/meteorclient/utils/entity/fakeplayer/FakePlayerEntity.java b/src/main/java/meteordevelopment/meteorclient/utils/entity/fakeplayer/FakePlayerEntity.java index a0ee18223b..4ddc217c9e 100644 --- a/src/main/java/meteordevelopment/meteorclient/utils/entity/fakeplayer/FakePlayerEntity.java +++ b/src/main/java/meteordevelopment/meteorclient/utils/entity/fakeplayer/FakePlayerEntity.java @@ -5,18 +5,21 @@ package meteordevelopment.meteorclient.utils.entity.fakeplayer; +import com.mojang.authlib.GameProfile; import net.minecraft.client.network.OtherClientPlayerEntity; import net.minecraft.client.network.PlayerListEntry; import net.minecraft.entity.player.PlayerEntity; import org.jetbrains.annotations.Nullable; +import java.util.UUID; + import static meteordevelopment.meteorclient.MeteorClient.mc; public class FakePlayerEntity extends OtherClientPlayerEntity { public boolean doNotPush, hideWhenInsideCamera; public FakePlayerEntity(PlayerEntity player, String name, float health, boolean copyInv) { - super(mc.world, player.getGameProfile()); + super(mc.world, new GameProfile(UUID.randomUUID(), name)); copyPositionAndRotation(player);