UUID before username
This commit is contained in:
@@ -104,8 +104,8 @@ public class LoginSessionHandler implements MinecraftSessionHandler {
|
|||||||
private static ByteBuf createForwardingData(String address, GameProfile profile) {
|
private static ByteBuf createForwardingData(String address, GameProfile profile) {
|
||||||
ByteBuf buf = Unpooled.buffer();
|
ByteBuf buf = Unpooled.buffer();
|
||||||
ProtocolUtils.writeString(buf, address);
|
ProtocolUtils.writeString(buf, address);
|
||||||
ProtocolUtils.writeString(buf, profile.getName());
|
|
||||||
ProtocolUtils.writeUuid(buf, profile.idAsUuid());
|
ProtocolUtils.writeUuid(buf, profile.idAsUuid());
|
||||||
|
ProtocolUtils.writeString(buf, profile.getName());
|
||||||
ProtocolUtils.writeVarInt(buf, profile.getProperties().size());
|
ProtocolUtils.writeVarInt(buf, profile.getProperties().size());
|
||||||
for (GameProfile.Property property : profile.getProperties()) {
|
for (GameProfile.Property property : profile.getProperties()) {
|
||||||
ProtocolUtils.writeString(buf, property.getName());
|
ProtocolUtils.writeString(buf, property.getName());
|
||||||
|
Reference in New Issue
Block a user