MC 1.9 : Add missing compatibility list entries

This commit is contained in:
ORelio 2016-03-05 19:33:44 +01:00
parent a82c6823af
commit 82e92f984b
2 changed files with 4 additions and 2 deletions

View file

@ -10,7 +10,7 @@ using MinecraftClient.Protocol.Handlers.Forge;
namespace MinecraftClient
{
/// <summary>
/// Minecraft Console Client by ORelio & Contributors (c) 2012-2016.
/// Minecraft Console Client by ORelio and Contributors (c) 2012-2016.
/// Allows to connect to any Minecraft server, send and receive text, automated scripts.
/// This source code is released under the CDDL 1.0 License.
/// </summary>

View file

@ -71,7 +71,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 };
int[] supportedVersions_Protocol18 = { 4, 5, 47, 107 };
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.");
@ -124,6 +124,8 @@ namespace MinecraftClient.Protocol
case "1.8.7":
case "1.8.8":
return 47;
case "1.8.9":
return 107;
default:
return 0;
}