Update version to 1.18.2 (#1961)

This commit is contained in:
Leon Heuer 2022-03-21 23:29:16 +01:00 committed by GitHub
parent 41950c8b20
commit a202f31aaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View file

@ -51,7 +51,7 @@ namespace MinecraftClient.Protocol.Handlers
public PacketTypePalette GetTypeHandler(int protocol)
{
PacketTypePalette p;
if (protocol > Protocol18Handler.MC1181Version)
if (protocol > Protocol18Handler.MC1182Version)
throw new NotImplementedException(Translations.Get("exception.palette.packet"));
if (protocol <= Protocol18Handler.MC18Version)
p = new PacketPalette17();

View file

@ -53,6 +53,7 @@ namespace MinecraftClient.Protocol.Handlers
internal const int MC117Version = 755;
internal const int MC1171Version = 756;
internal const int MC1181Version = 757;
internal const int MC1182Version = 758;
private int compression_treshold = 0;
private bool autocomplete_received = false;