mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Update to 1.17.1 (#1672)
This commit is contained in:
parent
48577bf034
commit
029762e0a9
4 changed files with 8 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ namespace MinecraftClient
|
||||||
|
|
||||||
public const string Version = MCHighestVersion;
|
public const string Version = MCHighestVersion;
|
||||||
public const string MCLowestVersion = "1.4.6";
|
public const string MCLowestVersion = "1.4.6";
|
||||||
public const string MCHighestVersion = "1.17";
|
public const string MCHighestVersion = "1.17.1";
|
||||||
public static readonly string BuildInfo = null;
|
public static readonly string BuildInfo = null;
|
||||||
|
|
||||||
private static Thread offlinePrompt = null;
|
private static Thread offlinePrompt = null;
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
public PacketTypePalette GetTypeHandler(int protocol)
|
public PacketTypePalette GetTypeHandler(int protocol)
|
||||||
{
|
{
|
||||||
PacketTypePalette p;
|
PacketTypePalette p;
|
||||||
if (protocol > Protocol18Handler.MC117Version)
|
if (protocol > Protocol18Handler.MC1171Version)
|
||||||
throw new NotImplementedException(Translations.Get("exception.palette.packet"));
|
throw new NotImplementedException(Translations.Get("exception.palette.packet"));
|
||||||
if (protocol <= Protocol18Handler.MC18Version)
|
if (protocol <= Protocol18Handler.MC18Version)
|
||||||
p = new PacketPalette17();
|
p = new PacketPalette17();
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
internal const int MC1163Version = 753;
|
internal const int MC1163Version = 753;
|
||||||
internal const int MC1165Version = 754;
|
internal const int MC1165Version = 754;
|
||||||
internal const int MC117Version = 755;
|
internal const int MC117Version = 755;
|
||||||
|
internal const int MC1171Version = 756;
|
||||||
|
|
||||||
private int compression_treshold = 0;
|
private int compression_treshold = 0;
|
||||||
private bool autocomplete_received = false;
|
private bool autocomplete_received = false;
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ namespace MinecraftClient.Protocol
|
||||||
int[] supportedVersions_Protocol16 = { 51, 60, 61, 72, 73, 74, 78 };
|
int[] supportedVersions_Protocol16 = { 51, 60, 61, 72, 73, 74, 78 };
|
||||||
if (Array.IndexOf(supportedVersions_Protocol16, ProtocolVersion) > -1)
|
if (Array.IndexOf(supportedVersions_Protocol16, ProtocolVersion) > -1)
|
||||||
return new Protocol16Handler(Client, ProtocolVersion, Handler);
|
return new Protocol16Handler(Client, ProtocolVersion, Handler);
|
||||||
int[] supportedVersions_Protocol18 = { 4, 5, 47, 107, 108, 109, 110, 210, 315, 316, 335, 338, 340, 393, 401, 404, 477, 480, 485, 490, 498, 573, 575, 578, 735, 736, 751, 753, 754, 755 };
|
int[] supportedVersions_Protocol18 = { 4, 5, 47, 107, 108, 109, 110, 210, 315, 316, 335, 338, 340, 393, 401, 404, 477, 480, 485, 490, 498, 573, 575, 578, 735, 736, 751, 753, 754, 755, 756 };
|
||||||
if (Array.IndexOf(supportedVersions_Protocol18, ProtocolVersion) > -1)
|
if (Array.IndexOf(supportedVersions_Protocol18, ProtocolVersion) > -1)
|
||||||
return new Protocol18Handler(Client, ProtocolVersion, Handler, forgeInfo);
|
return new Protocol18Handler(Client, ProtocolVersion, Handler, forgeInfo);
|
||||||
throw new NotSupportedException(Translations.Get("exception.version_unsupport", ProtocolVersion));
|
throw new NotSupportedException(Translations.Get("exception.version_unsupport", ProtocolVersion));
|
||||||
|
|
@ -247,6 +247,8 @@ namespace MinecraftClient.Protocol
|
||||||
return 754;
|
return 754;
|
||||||
case "1.17":
|
case "1.17":
|
||||||
return 755;
|
return 755;
|
||||||
|
case "1.17.1":
|
||||||
|
return 756;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
@ -308,6 +310,8 @@ namespace MinecraftClient.Protocol
|
||||||
case 751: return "1.16.2";
|
case 751: return "1.16.2";
|
||||||
case 753: return "1.16.3";
|
case 753: return "1.16.3";
|
||||||
case 754: return "1.16.5";
|
case 754: return "1.16.5";
|
||||||
|
case 755: return "1.17";
|
||||||
|
case 756: return "1.17.1";
|
||||||
default: return "0.0";
|
default: return "0.0";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue