diff --git a/src/main/java/com/replaymod/replay/gui/overlay/GuiReplayOverlay.java b/src/main/java/com/replaymod/replay/gui/overlay/GuiReplayOverlay.java index a5799aca..48fced31 100644 --- a/src/main/java/com/replaymod/replay/gui/overlay/GuiReplayOverlay.java +++ b/src/main/java/com/replaymod/replay/gui/overlay/GuiReplayOverlay.java @@ -200,7 +200,7 @@ public class GuiReplayOverlay extends AbstractGuiOverlay { //#if MC>=11400 { on(KeyEventCallback.EVENT, (int key, int scanCode, int action, int modifiers) -> onKeyInput(key, action)); } private void onKeyInput(int key, int action) { - if (action != 0) return; + if (action != GLFW.GLFW_PRESS) return; //#else //$$ @SubscribeEvent //$$ public void onKeyInput(InputEvent.KeyInputEvent event) {