summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorObsidian <108832807+Obsidianninja11@users.noreply.github.com>2024-05-01 00:45:15 -0800
committerGitHub <noreply@github.com>2024-05-01 10:45:15 +0200
commitb7bba09e48f61b4eb10ecfe6334391b373fd4867 (patch)
tree50aeb8e4101694ccda878019e7ee525194f27269 /src/main/java/at/hannibal2/skyhanni/features
parente096447a212484b269626cd42ab09356b76717d3 (diff)
downloadskyhanni-b7bba09e48f61b4eb10ecfe6334391b373fd4867.tar.gz
skyhanni-b7bba09e48f61b4eb10ecfe6334391b373fd4867.tar.bz2
skyhanni-b7bba09e48f61b4eb10ecfe6334391b373fd4867.zip
Fix: Composter GfS Messages (#1398)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterOverlay.kt5
1 files changed, 3 insertions, 2 deletions
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())