From 49c8865962aacc704e2bbeefcf6076367c76839a Mon Sep 17 00:00:00 2001 From: martimavocado <39881008+martimavocado@users.noreply.github.com> Date: Tue, 26 Mar 2024 18:14:46 +0000 Subject: Fix: Reducing sensitivity after locking doesn't keep the mouse locked (#1272) --- .../java/at/hannibal2/skyhanni/features/garden/SensitivityReducer.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at') 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.") } -- cgit