aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/HarpFeatures.kt15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/HarpFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/HarpFeatures.kt
index a9a5f6e7b..338a873fc 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/HarpFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/HarpFeatures.kt
@@ -104,16 +104,11 @@ object HarpFeatures {
@SubscribeEvent
fun onInventoryOpen(event: InventoryFullyOpenedEvent) {
if (!LorenzUtils.inSkyBlock) return
- if (!config.guiScale) return
- when {
- isMenuGui(event.inventoryName) -> {
- setGUIScale()
- openTime = SimpleTimeMark.now()
- }
-
- isHarpGui(event.inventoryName) -> {
- setGUIScale()
- }
+ if (config.quickRestart && isMenuGui(event.inventoryName)) {
+ openTime = SimpleTimeMark.now()
+ }
+ if (config.guiScale && (isMenuGui(event.inventoryName) || isHarpGui(event.inventoryName))) {
+ setGUIScale()
}
}