From 49648606790e13a1cb46fcc65d61b97e0680d0df Mon Sep 17 00:00:00 2001 From: ORelio Date: Sat, 25 May 2019 18:03:45 +0200 Subject: [PATCH] Mark 1.14.1 terrain as supported 1.14.1 Material IDs are the same as 1.14. See #728 and #736 --- MinecraftClient/Protocol/Handlers/Protocol18.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MinecraftClient/Protocol/Handlers/Protocol18.cs b/MinecraftClient/Protocol/Handlers/Protocol18.cs index 61aaebea..fa2b662f 100644 --- a/MinecraftClient/Protocol/Handlers/Protocol18.cs +++ b/MinecraftClient/Protocol/Handlers/Protocol18.cs @@ -34,6 +34,7 @@ namespace MinecraftClient.Protocol.Handlers internal const int MC1122Version = 340; internal const int MC113Version = 393; internal const int MC114Version = 477; + internal const int MC1141Version = 480; private int compression_treshold = 0; private bool autocomplete_received = false; @@ -63,7 +64,7 @@ namespace MinecraftClient.Protocol.Handlers if (protocolversion >= MC113Version) { - if (protocolVersion > MC114Version && handler.GetTerrainEnabled()) + if (protocolVersion > MC1141Version && handler.GetTerrainEnabled()) throw new NotImplementedException("Please update block types handling for this Minecraft version. See Material.cs"); if (protocolVersion >= MC114Version) Block.Palette = new Palette114(); @@ -71,7 +72,7 @@ namespace MinecraftClient.Protocol.Handlers } else Block.Palette = new Palette112(); - if (handler.GetTerrainEnabled() && protocolversion > MC114Version) + if (handler.GetTerrainEnabled() && protocolversion > MC1141Version) { ConsoleIO.WriteLineFormatted("ยง8Terrain & Movements currently not handled for that MC version."); handler.SetTerrainEnabled(false);