general 1.13.1 support (v401 protocol) - there doesn't seem to be any packet changes since 1.13 (v393)

This commit is contained in:
TheSnoozer 2018-09-25 18:53:18 -04:00 committed by ORelio
parent aad3d8b2ef
commit 32667f8d5d
2 changed files with 4 additions and 2 deletions

View file

@ -23,7 +23,7 @@ namespace MinecraftClient
public const string Version = MCHighestVersion;
public const string MCLowestVersion = "1.4.6";
public const string MCHighestVersion = "1.13";
public const string MCHighestVersion = "1.13.1";
public static readonly string BuildInfo = null;
private static Thread offlinePrompt = null;

View file

@ -106,7 +106,7 @@ namespace MinecraftClient.Protocol
int[] supportedVersions_Protocol16 = { 51, 60, 61, 72, 73, 74, 78 };
if (Array.IndexOf(supportedVersions_Protocol16, ProtocolVersion) > -1)
return new Protocol16Handler(Client, ProtocolVersion, Handler);
int[] supportedVersions_Protocol18 = { 4, 5, 47, 107, 108, 109, 110, 210, 315, 316, 335, 338, 340, 393 };
int[] supportedVersions_Protocol18 = { 4, 5, 47, 107, 108, 109, 110, 210, 315, 316, 335, 338, 340, 393, 401 };
if (Array.IndexOf(supportedVersions_Protocol18, ProtocolVersion) > -1)
return new Protocol18Handler(Client, ProtocolVersion, Handler, forgeInfo);
throw new NotSupportedException("The protocol version no." + ProtocolVersion + " is not supported.");
@ -191,6 +191,8 @@ namespace MinecraftClient.Protocol
return 340;
case "1.13":
return 393;
case "1.13.1":
return 401;
default:
return 0;
}