Mark 1.14.2 Terrain as supported

See #741
This commit is contained in:
ORelio 2019-05-30 11:25:05 +02:00 committed by ORelio
parent 49e1e76538
commit 084668b621

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 MC1141Version = 480; internal const int MC1142Version = 485;
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 > MC1141Version) if (handler.GetTerrainEnabled() && protocolversion > MC1142Version)
{ {
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);
@ -70,7 +70,7 @@ namespace MinecraftClient.Protocol.Handlers
if (protocolversion >= MC113Version) if (protocolversion >= MC113Version)
{ {
if (protocolVersion > MC1141Version && handler.GetTerrainEnabled()) if (protocolVersion > MC1142Version && 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();