mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Mark 1.14.1 terrain as supported
1.14.1 Material IDs are the same as 1.14. See #728 and #736
This commit is contained in:
parent
f99fb5886b
commit
4964860679
1 changed files with 3 additions and 2 deletions
|
|
@ -34,6 +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;
|
||||||
|
|
||||||
private int compression_treshold = 0;
|
private int compression_treshold = 0;
|
||||||
private bool autocomplete_received = false;
|
private bool autocomplete_received = false;
|
||||||
|
|
@ -63,7 +64,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
|
|
||||||
if (protocolversion >= MC113Version)
|
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");
|
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();
|
||||||
|
|
@ -71,7 +72,7 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
}
|
}
|
||||||
else Block.Palette = new Palette112();
|
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.");
|
ConsoleIO.WriteLineFormatted("§8Terrain & Movements currently not handled for that MC version.");
|
||||||
handler.SetTerrainEnabled(false);
|
handler.SetTerrainEnabled(false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue