Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
voruti committed Dec 1, 2023
1 parent f870488 commit 45ba1d1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ public abstract class ServerLoginNetworkHandlerMixin {
@Redirect(method = "onHello", at = @At(value = "INVOKE",
target = "Lnet/minecraft/server/MinecraftServer;getHostProfile()Lcom/mojang/authlib/GameProfile;"))
private GameProfile initUuid(MinecraftServer minecraftServer) {
final GameProfile originalGameProfile = minecraftServer.getHostProfile();

// override game profile with saved information:
final GameProfile gameProfile = new GameProfile(((BungeeClientConnection) connection).getSpoofedUUID(), this.profile.getName());
final GameProfile gameProfile = new GameProfile(((BungeeClientConnection) connection).getSpoofedUUID(), originalGameProfile.getName());

if (((BungeeClientConnection) connection).getSpoofedProfile() != null) {
for (Property property : ((BungeeClientConnection) connection).getSpoofedProfile()) {
Expand Down

0 comments on commit 45ba1d1

Please sign in to comment.