aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-04-17 16:23:15 +0200
committerGitHub <noreply@github.com>2024-04-17 16:23:15 +0200
commit546a2047d4e8134ab94e327d1be37442349a9576 (patch)
treebbd9d779f6e87b67536ed6b70b4f3fd0f13c9191 /src
parentdcd9ee93e42b887c72bdc9e36700d0a183f81135 (diff)
downloadskyhanni-546a2047d4e8134ab94e327d1be37442349a9576.tar.gz
skyhanni-546a2047d4e8134ab94e327d1be37442349a9576.tar.bz2
skyhanni-546a2047d4e8134ab94e327d1be37442349a9576.zip
Fix: Fixed Bits Available being out of sync after Rift (#1467)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/BitsAPI.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/BitsAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/BitsAPI.kt
index a69622916..05109d4fb 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/BitsAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/BitsAPI.kt
@@ -225,6 +225,12 @@ object BitsAPI {
if (bitsAvailable != amount) {
bitsAvailable = amount
sendBitsAvailableGainedEvent()
+
+ val difference = bits - bitsAvailable
+ if (difference > 0) {
+ ChatUtils.debug("You have gained §3${difference} Bits §7according to the menu!")
+ bits += difference
+ }
}
}
lore.matchFirst(cookieDurationPattern) {