From 39f958a7bb85dc6303483bc07480db5af92408dc Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Sat, 29 Aug 2020 09:30:57 +0200 Subject: [PATCH] Fix F1 not functioning on 1.14+ while replay gui is focused --- .../java/com/replaymod/replay/gui/overlay/GuiReplayOverlay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {