1.7.6-pre1 Support
This commit is contained in:
@@ -371,7 +371,14 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
||||
{
|
||||
uniqueId = java.util.UUID.nameUUIDFromBytes( ( "OfflinePlayer:" + getName() ).getBytes( Charsets.UTF_8 ) );
|
||||
}
|
||||
unsafe.sendPacket( new LoginSuccess( uniqueId.toString(), getName() ) );
|
||||
// Version 5 == 1.7.6. This is a screwup as 1.7.6 was also a snapshot.
|
||||
if ( getVersion() == 5 )
|
||||
{
|
||||
unsafe.sendPacket( new LoginSuccess( getUniqueId().toString(), getName() ) ); // With dashes in between
|
||||
} else
|
||||
{
|
||||
unsafe.sendPacket( new LoginSuccess( getUUID(), getName() ) ); // Without dashes, for older clients.
|
||||
}
|
||||
ch.setProtocol( Protocol.GAME );
|
||||
|
||||
UserConnection userCon = new UserConnection( bungee, ch, getName(), InitialHandler.this );
|
||||
|
Reference in New Issue
Block a user