diff options
author | martimavocado <39881008+martimavocado@users.noreply.github.com> | 2024-03-24 09:15:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-24 10:15:21 +0100 |
commit | 86fecf7a59c73b7f9160ae16eb26705ebeb00dae (patch) | |
tree | a3f33269a03c5e1a93f06e51c242005fa14f66d1 /src/main/java/at/hannibal2/skyhanni | |
parent | c394d46f9c73e8283df127b8c9d9f8edfb6d0c52 (diff) | |
download | skyhanni-86fecf7a59c73b7f9160ae16eb26705ebeb00dae.tar.gz skyhanni-86fecf7a59c73b7f9160ae16eb26705ebeb00dae.tar.bz2 skyhanni-86fecf7a59c73b7f9160ae16eb26705ebeb00dae.zip |
Fix: Sensitivity Reducer + Mouse Lock incompatbility (#1253)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/SensitivityReducer.kt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/SensitivityReducer.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/SensitivityReducer.kt index a613a65f1..a13ca41d3 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/SensitivityReducer.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/SensitivityReducer.kt @@ -106,6 +106,7 @@ object SensitivityReducer { fun onRenderOverlay(event: GuiRenderEvent.GuiOverlayRenderEvent) { if (!(isToggled || isManualToggle)) return if (!config.showGUI) return + if (LockMouseLook.lockedMouse) return config.position.renderString("§eSensitivity Lowered", posLabel = "Sensitivity Lowered") } @@ -136,7 +137,11 @@ object SensitivityReducer { val divisor = config.reducingFactor.get() ChatUtils.debug("dividing by $divisor") - storage.savedMouseloweredSensitivity = gameSettings.mouseSensitivity + if (!LockMouseLook.lockedMouse) { + storage.savedMouseloweredSensitivity = gameSettings.mouseSensitivity + } else { + storage.savedMouseloweredSensitivity = storage.savedMouselockedSensitivity + } val newSens = doTheMath(storage.savedMouseloweredSensitivity) gameSettings?.mouseSensitivity = newSens if (showMessage) ChatUtils.chat("§bMouse sensitivity is now lowered. Type /shsensreduce to restore your sensitivity.") |