Fix F1 not functioning on 1.14+ while replay gui is focused

This commit is contained in:
Jonas Herzig
2020-08-29 09:30:57 +02:00
parent 103d2204d6
commit 39f958a7bb

View File

@@ -200,7 +200,7 @@ public class GuiReplayOverlay extends AbstractGuiOverlay<GuiReplayOverlay> {
//#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) {