mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix crash on terrain and movements not implemented (#736)
This commit is contained in:
parent
4964860679
commit
76def0d56b
1 changed files with 6 additions and 6 deletions
|
|
@ -62,6 +62,12 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
this.pForge = new Protocol18Forge(forgeInfo, protocolVersion, dataTypes, this, handler);
|
||||
this.pTerrain = new Protocol18Terrain(protocolVersion, dataTypes, handler);
|
||||
|
||||
if (handler.GetTerrainEnabled() && protocolversion > MC1141Version)
|
||||
{
|
||||
ConsoleIO.WriteLineFormatted("§8Terrain & Movements currently not handled for that MC version.");
|
||||
handler.SetTerrainEnabled(false);
|
||||
}
|
||||
|
||||
if (protocolversion >= MC113Version)
|
||||
{
|
||||
if (protocolVersion > MC1141Version && handler.GetTerrainEnabled())
|
||||
|
|
@ -71,12 +77,6 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
else Block.Palette = new Palette113();
|
||||
}
|
||||
else Block.Palette = new Palette112();
|
||||
|
||||
if (handler.GetTerrainEnabled() && protocolversion > MC1141Version)
|
||||
{
|
||||
ConsoleIO.WriteLineFormatted("§8Terrain & Movements currently not handled for that MC version.");
|
||||
handler.SetTerrainEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue