1.7.6-pre1 Support

This commit is contained in:
Thinkofdeath
2014-04-04 11:25:19 +01:00
committed by md_5
parent 13848def72
commit 1d3adc5317
4 changed files with 13 additions and 6 deletions

View File

@@ -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 );