Added clientID to login call.

Updated project file to include Cache namespace.
This commit is contained in:
initsuj 2016-03-02 07:25:09 -07:00
parent 64606c128f
commit 75f2f738a2
2 changed files with 7 additions and 5 deletions

View file

@ -72,6 +72,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="AutoTimeout.cs" />
<Compile Include="Cache\AuthCacheHandler.cs" />
<Compile Include="ChatBots\Alerts.cs" />
<Compile Include="ChatBots\AntiAFK.cs" />
<Compile Include="ChatBots\AutoRespond.cs" />

View file

@ -118,6 +118,7 @@ namespace MinecraftClient
ProtocolHandler.LoginResult result;
Settings.Username = Settings.Login;
string sessionID = "";
string clientID = "";
string UUID = "";
if (Settings.Password == "-")
@ -129,7 +130,7 @@ namespace MinecraftClient
else
{
Console.WriteLine("Connecting to Minecraft.net...");
result = ProtocolHandler.GetLogin(ref Settings.Username, Settings.Password, ref sessionID, ref UUID);
result = ProtocolHandler.GetLogin(ref Settings.Username, Settings.Password, ref sessionID, ref clientID, ref UUID);
}
if (result == ProtocolHandler.LoginResult.Success)