diff options
author | Zachary Jaser <76439587+Zickles@users.noreply.github.com> | 2024-03-03 16:37:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-03 22:37:26 +0100 |
commit | e76941dd2a9569bd02429a73da23483cf8affc44 (patch) | |
tree | e9a443334429a25c4c2a5d1c85f34ef393f20934 /src/main/java/at/hannibal2/skyhanni | |
parent | b04df2e342b47f1b8b8d7dfb36d6e4c003c6a71f (diff) | |
download | skyhanni-e76941dd2a9569bd02429a73da23483cf8affc44.tar.gz skyhanni-e76941dd2a9569bd02429a73da23483cf8affc44.tar.bz2 skyhanni-e76941dd2a9569bd02429a73da23483cf8affc44.zip |
refactor melody quick restart (#1096)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/HarpFeatures.kt | 15 |
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() } } |