From b7bba09e48f61b4eb10ecfe6334391b373fd4867 Mon Sep 17 00:00:00 2001 From: Obsidian <108832807+Obsidianninja11@users.noreply.github.com> Date: Wed, 1 May 2024 00:45:15 -0800 Subject: Fix: Composter GfS Messages (#1398) --- .../hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt index 6516d9a2e..f19288a97 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt @@ -517,11 +517,12 @@ object ComposterOverlay { } HypixelCommands.getFromSacks(internalName.asString(), itemsNeeded - havingInInventory) - if (itemsNeeded > havingInInventory - havingInSacks) { + val havingInTotal = havingInInventory + havingInSacks + if (itemsNeeded >= havingInTotal) { if (LorenzUtils.noTradeMode) { ChatUtils.chat("You're out of $itemName §ein your sacks!") } else { - ChatUtils.clickableChat( + ChatUtils.clickableChat( // TODO Add this as a separate feature, and then don't send any msg if the feature is disabled "You're out of $itemName §ein your sacks! Click here to buy more on the Bazaar!", onClick = { HypixelCommands.bazaar(itemName.removeColor()) -- cgit