aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authormartimavocado <39881008+martimavocado@users.noreply.github.com>2024-03-26 18:14:46 +0000
committerGitHub <noreply@github.com>2024-03-26 19:14:46 +0100
commit49c8865962aacc704e2bbeefcf6076367c76839a (patch)
treec5fba9b6e16e7349b9e0f2823cb29fedb78836bd /src/main/java/at
parent9a769c7dc4e759854dd25be135635c8fea2b6fbb (diff)
downloadskyhanni-49c8865962aacc704e2bbeefcf6076367c76839a.tar.gz
skyhanni-49c8865962aacc704e2bbeefcf6076367c76839a.tar.bz2
skyhanni-49c8865962aacc704e2bbeefcf6076367c76839a.zip
Fix: Reducing sensitivity after locking doesn't keep the mouse locked (#1272)
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/SensitivityReducer.kt4
1 files changed, 2 insertions, 2 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 a13ca41d3..0cb3291b2 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/SensitivityReducer.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/SensitivityReducer.kt
@@ -139,11 +139,11 @@ object SensitivityReducer {
if (!LockMouseLook.lockedMouse) {
storage.savedMouseloweredSensitivity = gameSettings.mouseSensitivity
+ val newSens = doTheMath(storage.savedMouseloweredSensitivity)
+ gameSettings?.mouseSensitivity = newSens
} 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.")
}