From 4f89e4fe36716f5417a474b053c6fd6328f96bbf Mon Sep 17 00:00:00 2001 From: Anon Date: Mon, 29 Jan 2024 22:40:17 +0100 Subject: [PATCH] Fixed a crash on non 1.20.2 versions --- .../Protocol/Handlers/PacketPalettes/PacketPalette110.cs | 4 ++-- .../Protocol/Handlers/PacketPalettes/PacketPalette112.cs | 4 ++-- .../Protocol/Handlers/PacketPalettes/PacketPalette1122.cs | 4 ++-- .../Protocol/Handlers/PacketPalettes/PacketPalette113.cs | 4 ++-- .../Protocol/Handlers/PacketPalettes/PacketPalette114.cs | 4 ++-- .../Protocol/Handlers/PacketPalettes/PacketPalette115.cs | 4 ++-- .../Protocol/Handlers/PacketPalettes/PacketPalette116.cs | 4 ++-- .../Protocol/Handlers/PacketPalettes/PacketPalette1162.cs | 4 ++-- .../Protocol/Handlers/PacketPalettes/PacketPalette117.cs | 4 ++-- .../Protocol/Handlers/PacketPalettes/PacketPalette118.cs | 4 ++-- .../Protocol/Handlers/PacketPalettes/PacketPalette119.cs | 4 ++-- .../Protocol/Handlers/PacketPalettes/PacketPalette1192.cs | 4 ++-- .../Protocol/Handlers/PacketPalettes/PacketPalette1193.cs | 4 ++-- .../Protocol/Handlers/PacketPalettes/PacketPalette1194.cs | 4 ++-- .../Protocol/Handlers/PacketPalettes/PacketPalette17.cs | 4 ++-- .../Protocol/Handlers/PacketPalettes/PacketPalette18.cs | 4 ++-- 16 files changed, 32 insertions(+), 32 deletions(-) diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette110.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette110.cs index aed6e52b..4b51bc53 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette110.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette110.cs @@ -120,7 +120,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } } diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette112.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette112.cs index 4479e340..9a5fc685 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette112.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette112.cs @@ -126,7 +126,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } } diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1122.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1122.cs index 401d0d3c..e1a2e64c 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1122.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1122.cs @@ -127,7 +127,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } } diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette113.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette113.cs index c17bccd7..7f35edd1 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette113.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette113.cs @@ -143,7 +143,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } } diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette114.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette114.cs index ef9cebf5..472bd860 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette114.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette114.cs @@ -153,7 +153,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } } diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette115.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette115.cs index c1b7f21f..4ce879b1 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette115.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette115.cs @@ -153,7 +153,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } } diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette116.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette116.cs index 334f1270..0d17ba6c 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette116.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette116.cs @@ -153,7 +153,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } } diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1162.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1162.cs index 4894a79c..521fcf2a 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1162.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1162.cs @@ -154,7 +154,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } } diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette117.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette117.cs index 305bf52f..70191896 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette117.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette117.cs @@ -165,7 +165,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } } diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette118.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette118.cs index e249ab43..ffecc3db 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette118.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette118.cs @@ -166,7 +166,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } } diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette119.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette119.cs index 990da3e1..0757dcb8 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette119.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette119.cs @@ -170,7 +170,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } } diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1192.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1192.cs index 2920fd96..2fb5a291 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1192.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1192.cs @@ -173,7 +173,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } } \ No newline at end of file diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1193.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1193.cs index d098c76c..49e27a58 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1193.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1193.cs @@ -172,7 +172,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } } \ No newline at end of file diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1194.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1194.cs index fd65461a..489961fe 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1194.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette1194.cs @@ -177,7 +177,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } } \ No newline at end of file diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette17.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette17.cs index 43a275d9..bd337612 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette17.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette17.cs @@ -115,7 +115,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } } diff --git a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette18.cs b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette18.cs index 11cefe60..b7db312d 100644 --- a/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette18.cs +++ b/MinecraftClient/Protocol/Handlers/PacketPalettes/PacketPalette18.cs @@ -119,7 +119,7 @@ namespace MinecraftClient.Protocol.Handlers.PacketPalettes protected override Dictionary GetListIn() => typeIn; protected override Dictionary GetListOut() => typeOut; - protected override Dictionary GetConfigurationListIn() => null!; - protected override Dictionary GetConfigurationListOut() => null!; + protected override Dictionary GetConfigurationListIn() => new(); + protected override Dictionary GetConfigurationListOut() => new(); } }