From fc1d99f98527180270d85890b46239d38b7cb0c6 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Mon, 20 May 2019 17:34:07 +0200 Subject: [PATCH] Fix mouse input to overlays while the replay is paused in 1.8-1.12.2 --- .../java/com/replaymod/replay/InputReplayTimer.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/replaymod/replay/InputReplayTimer.java b/src/main/java/com/replaymod/replay/InputReplayTimer.java index 4c9109e7..d424cd11 100644 --- a/src/main/java/com/replaymod/replay/InputReplayTimer.java +++ b/src/main/java/com/replaymod/replay/InputReplayTimer.java @@ -70,11 +70,7 @@ public class InputReplayTimer extends WrappedTimer { mc.keyboard.pollDebugCrash(); //#else //#if MC>=10904 - //$$ if (mc.currentScreen == null || mc.currentScreen.allowUserInput) { - //$$ ((MCVer.MinecraftMethodAccessor) mc).replayModRunTickMouse(); - //$$ ((MCVer.MinecraftMethodAccessor) mc).replayModRunTickKeyboard(); - //$$ } else { - //#if MC<11300 + //$$ if (mc.currentScreen != null) { //#if MC>=10800 //$$ try { //$$ mc.currentScreen.handleInput(); @@ -84,7 +80,10 @@ public class InputReplayTimer extends WrappedTimer { //#else //$$ mc.currentScreen.handleInput(); //#endif - //#endif + //$$ } + //$$ if (mc.currentScreen == null || mc.currentScreen.allowUserInput) { + //$$ ((MCVer.MinecraftMethodAccessor) mc).replayModRunTickMouse(); + //$$ ((MCVer.MinecraftMethodAccessor) mc).replayModRunTickKeyboard(); //$$ } //#else //$$ // 1.8.9 and below has one giant tick function, so we try to only do keyboard & mouse as far as possible