mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2026-05-31 05:41:54 +00:00
Minecraft 26.2-pre-2 support
This commit is contained in:
@@ -386,7 +386,7 @@ public class ServerConnector extends PacketHandler
|
||||
} else
|
||||
{
|
||||
LoginResult loginProfile = user.getPendingConnection().getLoginProfile();
|
||||
user.unsafe().sendPacket( new LoginSuccess( user.getRewriteId(), user.getName(), ( loginProfile == null ) ? null : loginProfile.getProperties() ) );
|
||||
user.unsafe().sendPacket( new LoginSuccess( user.getRewriteId(), user.getName(), ( loginProfile == null ) ? null : loginProfile.getProperties(), user.getSessionId() ) );
|
||||
user.getCh().setEncodeProtocol( Protocol.CONFIGURATION );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,6 +131,8 @@ public final class UserConnection implements ProxiedPlayer
|
||||
private final Collection<String> permissions = new CaseInsensitiveSet();
|
||||
/*========================================================================*/
|
||||
@Getter
|
||||
private final UUID sessionId = UUID.randomUUID();
|
||||
@Getter
|
||||
@Setter
|
||||
private int clientEntityId;
|
||||
@Getter
|
||||
|
||||
@@ -621,7 +621,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
||||
|
||||
if ( getVersion() < ProtocolConstants.MINECRAFT_1_20_2 )
|
||||
{
|
||||
unsafe.sendPacket( new LoginSuccess( getRewriteId(), getName(), ( loginProfile == null ) ? null : loginProfile.getProperties() ) );
|
||||
unsafe.sendPacket( new LoginSuccess( getRewriteId(), getName(), ( loginProfile == null ) ? null : loginProfile.getProperties(), null ) );
|
||||
ch.setProtocol( Protocol.GAME );
|
||||
}
|
||||
finish2();
|
||||
|
||||
Reference in New Issue
Block a user