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);