diff --git a/src/main/java/the_fireplace/audiobook/Audiobook.java b/src/main/java/the_fireplace/audiobook/Audiobook.java index fb36e54..5425f07 100644 --- a/src/main/java/the_fireplace/audiobook/Audiobook.java +++ b/src/main/java/the_fireplace/audiobook/Audiobook.java @@ -3,7 +3,6 @@ import net.fabricmc.api.ClientModInitializer; import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper; import net.minecraft.client.options.KeyBinding; -import net.minecraft.client.util.InputUtil; import java.awt.event.KeyEvent; @@ -15,6 +14,6 @@ public class Audiobook implements ClientModInitializer { @Override public void onInitializeClient() { audiobookKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.audiobook.read_book", KeyEvent.VK_H, "key.categories.misc")); - stopAudiobookKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.audiobook.stop_book", InputUtil.UNKNOWN_KEY.getCode(), "key.categories.misc")); + stopAudiobookKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.audiobook.stop_book", KeyEvent.VK_J, "key.categories.misc")); } }