aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt
index e9a8bb687..f4d98e782 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/hoppity/HoppityCollectionStats.kt
@@ -134,11 +134,13 @@ object HoppityCollectionStats {
@SubscribeEvent
fun onInventoryOpen(event: InventoryFullyOpenedEvent) {
- if (!isEnabled()) return
+ if (!(LorenzUtils.inSkyBlock)) return
if (!pagePattern.matches(event.inventoryName)) return
inInventory = true
- display = buildDisplay(event)
+ if (config.hoppityCollectionStats) {
+ display = buildDisplay(event)
+ }
}
@SubscribeEvent
@@ -150,6 +152,7 @@ object HoppityCollectionStats {
@SubscribeEvent
fun onBackgroundDraw(event: GuiRenderEvent.ChestGuiOverlayRenderEvent) {
if (!inInventory) return
+ if (!config.hoppityCollectionStats) return
config.hoppityStatsPosition.renderRenderables(
display,
@@ -367,8 +370,6 @@ object HoppityCollectionStats {
fun hasFoundRabbit(rabbit: String): Boolean = loggedRabbits.containsKey(rabbit)
- private fun isEnabled() = LorenzUtils.inSkyBlock && config.hoppityCollectionStats
-
enum class RabbitCollectionRarity(
val displayName: String,
val item: NEUInternalName,