mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Added clientID to login call.
Updated project file to include Cache namespace.
This commit is contained in:
parent
64606c128f
commit
75f2f738a2
2 changed files with 7 additions and 5 deletions
|
|
@ -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" />
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue