From 546a2047d4e8134ab94e327d1be37442349a9576 Mon Sep 17 00:00:00 2001 From: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Date: Wed, 17 Apr 2024 16:23:15 +0200 Subject: Fix: Fixed Bits Available being out of sync after Rift (#1467) --- src/main/java/at/hannibal2/skyhanni/data/BitsAPI.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/at/hannibal2') 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) { -- cgit