From 31d45b0950bf6566d22d3f39003b897442f58aff Mon Sep 17 00:00:00 2001 From: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com> Date: Wed, 8 Apr 2020 18:24:26 +0800 Subject: [PATCH] Update Inventory.cs --- MinecraftClient/Commands/Inventory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MinecraftClient/Commands/Inventory.cs b/MinecraftClient/Commands/Inventory.cs index 044b95b7..e454bd50 100644 --- a/MinecraftClient/Commands/Inventory.cs +++ b/MinecraftClient/Commands/Inventory.cs @@ -43,7 +43,7 @@ namespace MinecraftClient.Commands response.Add(String.Format(" #{0}: {1} x{2}", item.Key, item.Value.Type, item.Value.Count)); else response.Add(String.Format(" #{0}: {1} x{2} - {3}ยง8", item.Key, item.Value.Type, item.Value.Count, displayName)); } - response.Add("Your selected hotbar is " + (handler.GetCurrentSlot() + 1)); + if (inventoryId == 0) response.Add("Your selected hotbar is " + (handler.GetCurrentSlot() + 1)); return String.Join("\n", response.ToArray()); case "click": if (args.Length == 3)