summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-10-18 06:53:01 +1100
committerGitHub <noreply@github.com>2023-10-17 21:53:01 +0200
commit60a68b0c0304447b0ef6c4f07dde5c4cd95b7f51 (patch)
tree00c6e24569afd19793bb3790df99cbd5046b1bf7 /src/main/java/at/hannibal2/skyhanni/features
parent5560763ae2481c84c63513d37b228855dfa7ee43 (diff)
downloadskyhanni-60a68b0c0304447b0ef6c4f07dde5c4cd95b7f51.tar.gz
skyhanni-60a68b0c0304447b0ef6c4f07dde5c4cd95b7f51.tar.bz2
skyhanni-60a68b0c0304447b0ef6c4f07dde5c4cd95b7f51.zip
oops (#600)
Fixed error with internal sacks data. #600
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, 4 insertions, 1 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 38f95aa5f..c6b85b489 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
@@ -3,6 +3,7 @@ package at.hannibal2.skyhanni.features.garden.composter
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator
import at.hannibal2.skyhanni.data.SackAPI
+import at.hannibal2.skyhanni.data.SackItem.Companion.getStatus
import at.hannibal2.skyhanni.data.SackStatus
import at.hannibal2.skyhanni.data.model.ComposterUpgrade
import at.hannibal2.skyhanni.events.GuiRenderEvent
@@ -456,7 +457,9 @@ class ComposterOverlay {
return
}
- val (amountInSacks, _, sackStatus) = SackAPI.fetchSackItem(internalName.asInternalName())
+ val sackItem = SackAPI.fetchSackItem(internalName.asInternalName())
+ val amountInSacks = sackItem.amount
+ val sackStatus = sackItem.getStatus()
if (sackStatus == SackStatus.MISSING || sackStatus == SackStatus.OUTDATED) {
if (sackStatus == SackStatus.OUTDATED) LorenzUtils.sendCommandToServer("gfs $internalName ${itemsNeeded - having}")