Skip to content

Commit

Permalink
fix keybindings not saving correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsPasi committed Jun 20, 2024
1 parent 04727f9 commit a4f21e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/natural/motionblur/MotionBlurMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a4f21e7

Please sign in to comment.