From 91e977a7bd957a8f2dbcde09c45ad880f7b5caf6 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Tue, 31 Jul 2018 00:48:56 -0400 Subject: [PATCH] UUID before username --- .../proxy/connection/backend/LoginSessionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/velocitypowered/proxy/connection/backend/LoginSessionHandler.java b/src/main/java/com/velocitypowered/proxy/connection/backend/LoginSessionHandler.java index 997ba4c5c..2f6bae8d2 100644 --- a/src/main/java/com/velocitypowered/proxy/connection/backend/LoginSessionHandler.java +++ b/src/main/java/com/velocitypowered/proxy/connection/backend/LoginSessionHandler.java @@ -104,8 +104,8 @@ public class LoginSessionHandler implements MinecraftSessionHandler { private static ByteBuf createForwardingData(String address, GameProfile profile) { ByteBuf buf = Unpooled.buffer(); ProtocolUtils.writeString(buf, address); - ProtocolUtils.writeString(buf, profile.getName()); ProtocolUtils.writeUuid(buf, profile.idAsUuid()); + ProtocolUtils.writeString(buf, profile.getName()); ProtocolUtils.writeVarInt(buf, profile.getProperties().size()); for (GameProfile.Property property : profile.getProperties()) { ProtocolUtils.writeString(buf, property.getName());