From 364afdfc72c2043e894cae903669af2f39075beb Mon Sep 17 00:00:00 2001 From: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com> Date: Tue, 24 Mar 2020 15:12:14 +0800 Subject: [PATCH] Update Inventory support version to 1.15.2 and Remove GetInventoryEnabled condition bypass --- MinecraftClient/MinecraftClient.csproj | 1 - MinecraftClient/Protocol/Handlers/Protocol18.cs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/MinecraftClient/MinecraftClient.csproj b/MinecraftClient/MinecraftClient.csproj index f5dcca51..f5ffe2d4 100644 --- a/MinecraftClient/MinecraftClient.csproj +++ b/MinecraftClient/MinecraftClient.csproj @@ -88,7 +88,6 @@ - diff --git a/MinecraftClient/Protocol/Handlers/Protocol18.cs b/MinecraftClient/Protocol/Handlers/Protocol18.cs index 0784986f..d7ae3b49 100644 --- a/MinecraftClient/Protocol/Handlers/Protocol18.cs +++ b/MinecraftClient/Protocol/Handlers/Protocol18.cs @@ -68,7 +68,7 @@ namespace MinecraftClient.Protocol.Handlers handler.SetTerrainEnabled(false); } - if (handler.GetInventoryEnabled() && protocolversion > MC114Version) + if (handler.GetInventoryEnabled() && protocolversion > MC1152Version) { ConsoleIO.WriteLineFormatted("ยง8Inventories are currently not handled for that MC version."); handler.SetInventoryEnabled(false); @@ -509,7 +509,7 @@ namespace MinecraftClient.Protocol.Handlers } break; case PacketIncomingType.WindowItems: - if (handler.GetInventoryEnabled()||true) // set true in .ini but GetInventoryEnabled seems like return false + if (handler.GetInventoryEnabled()) { /* * Following commented code will crash