Mark Terrain & Movement as supported for 1.14.4

See #794 #820 #822
This commit is contained in:
ORelio 2019-11-01 12:07:54 +01:00
parent 6ac3cd90ee
commit 96eda73dce

View file

@ -34,7 +34,7 @@ namespace MinecraftClient.Protocol.Handlers
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 MC1142Version = 485; internal const int MC1144Version = 498;
private int compression_treshold = 0; private int compression_treshold = 0;
private bool autocomplete_received = false; private bool autocomplete_received = false;
@ -62,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 > MC1142Version) if (handler.GetTerrainEnabled() && protocolversion > MC1144Version)
{ {
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);
@ -76,7 +76,7 @@ namespace MinecraftClient.Protocol.Handlers
if (protocolversion >= MC113Version) if (protocolversion >= MC113Version)
{ {
if (protocolVersion > MC1142Version && handler.GetTerrainEnabled()) if (protocolVersion > MC1144Version && 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 >= MC114Version) if (protocolVersion >= MC114Version)
Block.Palette = new Palette114(); Block.Palette = new Palette114();