Remove Java dependency for server Hash

Server Hash is now fully computed using C#.NET capabilities only.
That's another step towards removing Java lib dependencies :)
This commit is contained in:
ORelio 2014-03-13 12:12:44 +01:00
parent bac660d410
commit 01ba55527d
2 changed files with 48 additions and 20 deletions

View file

@ -486,7 +486,7 @@ namespace MinecraftClient
if (serverIDhash != "-")
{
Console.WriteLine("Checking Session...");
if (!SessionCheck(uuid, sessionID, new java.math.BigInteger(Crypto.getServerHash(serverIDhash, serverKey, secretKey)).toString(16)))
if (!SessionCheck(uuid, sessionID, Crypto.getServerHash(serverIDhash, serverKey, secretKey)))
{
return false;
}