mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix dev build numbering, add update notes
Add newline in AssemblyInfo to fix dev build number in exe (#456) Add remarks on how to implement newer MC versions (from #145, #599)
This commit is contained in:
parent
9841156130
commit
5f83ff0958
6 changed files with 29 additions and 5 deletions
|
|
@ -14,6 +14,11 @@ namespace MinecraftClient.Protocol
|
|||
/// <summary>
|
||||
/// Handle login, session, server ping and provide a protocol handler for interacting with a minecraft server.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Typical update steps for marking a new Minecraft version as supported:
|
||||
/// - Add protocol ID in GetProtocolHandler()
|
||||
/// - Add 1.X.X case in MCVer2ProtocolVersion()
|
||||
/// </remarks>
|
||||
public static class ProtocolHandler
|
||||
{
|
||||
/// <summary>
|
||||
|
|
@ -106,7 +111,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, 401 , 404 };
|
||||
int[] supportedVersions_Protocol18 = { 4, 5, 47, 107, 108, 109, 110, 210, 315, 316, 335, 338, 340, 393, 401, 404 };
|
||||
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.");
|
||||
|
|
@ -526,6 +531,7 @@ namespace MinecraftClient.Protocol
|
|||
private static string JsonEncode(string text)
|
||||
{
|
||||
StringBuilder result = new StringBuilder();
|
||||
|
||||
foreach (char c in text)
|
||||
{
|
||||
if ((c >= '0' && c <= '9') ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue