From a4f21e70bab36d8c9b672dd5bca022b47af655e3 Mon Sep 17 00:00:00 2001 From: ItsPasi Date: Thu, 20 Jun 2024 13:11:49 +0200 Subject: [PATCH] fix keybindings not saving correctly --- src/main/java/net/natural/motionblur/MotionBlurMod.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/natural/motionblur/MotionBlurMod.java b/src/main/java/net/natural/motionblur/MotionBlurMod.java index 7170a70..73c6195 100644 --- a/src/main/java/net/natural/motionblur/MotionBlurMod.java +++ b/src/main/java/net/natural/motionblur/MotionBlurMod.java @@ -107,7 +107,8 @@ public void onInitializeClient() { .setKeySaveConsumer(newValue -> { config.toggleKey = newValue.getCode(); toggleKeybinding.setBoundKey(newValue); - KeyBinding.updateKeysByCode(); // Ensure the keybinding gets updated + KeyBinding.updateKeysByCode(); + MinecraftClient.getInstance().options.write(); }) .build()); builder.setSavingRunnable(this::saveConfig);