Add 1.15.1 (1/2)

This commit is contained in:
ORelio 2019-12-25 11:11:55 +01:00
parent f82b09af5a
commit aba2ec79d1
2 changed files with 4 additions and 5 deletions

View file

@ -30,7 +30,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.15.0"; public const string MCHighestVersion = "1.15.1";
public static readonly string BuildInfo = null; public static readonly string BuildInfo = null;
private static Thread offlinePrompt = null; private static Thread offlinePrompt = null;

View file

@ -30,12 +30,11 @@ namespace MinecraftClient.Protocol.Handlers
internal const int MC110Version = 210; internal const int MC110Version = 210;
internal const int MC1112Version = 316; internal const int MC1112Version = 316;
internal const int MC112Version = 335; internal const int MC112Version = 335;
internal const int MC1121Version = 338;
internal const int MC1122Version = 340; internal const int MC1122Version = 340;
internal const int MC113Version = 393; internal const int MC113Version = 393;
internal const int MC114Version = 477; internal const int MC114Version = 477;
internal const int MC1144Version = 498;
internal const int MC115Version = 573; internal const int MC115Version = 573;
internal const int MC1151Version = 575;
private int compression_treshold = 0; private int compression_treshold = 0;
private bool autocomplete_received = false; private bool autocomplete_received = false;
@ -63,7 +62,7 @@ namespace MinecraftClient.Protocol.Handlers
this.pForge = new Protocol18Forge(forgeInfo, protocolVersion, dataTypes, this, handler); this.pForge = new Protocol18Forge(forgeInfo, protocolVersion, dataTypes, this, handler);
this.pTerrain = new Protocol18Terrain(protocolVersion, dataTypes, handler); this.pTerrain = new Protocol18Terrain(protocolVersion, dataTypes, handler);
if (handler.GetTerrainEnabled() && protocolversion > MC115Version) if (handler.GetTerrainEnabled() && protocolversion > MC1151Version)
{ {
ConsoleIO.WriteLineFormatted("§8Terrain & Movements currently not handled for that MC version."); ConsoleIO.WriteLineFormatted("§8Terrain & Movements currently not handled for that MC version.");
handler.SetTerrainEnabled(false); handler.SetTerrainEnabled(false);
@ -77,7 +76,7 @@ namespace MinecraftClient.Protocol.Handlers
if (protocolversion >= MC113Version) if (protocolversion >= MC113Version)
{ {
if (protocolVersion > MC115Version && handler.GetTerrainEnabled()) if (protocolVersion > MC1151Version && handler.GetTerrainEnabled())
throw new NotImplementedException("Please update block types handling for this Minecraft version. See Material.cs"); throw new NotImplementedException("Please update block types handling for this Minecraft version. See Material.cs");
if (protocolVersion >= MC115Version) if (protocolVersion >= MC115Version)
Block.Palette = new Palette115(); Block.Palette = new Palette115();