Fix scrolling while replay paused on 1.12.2 and below (fixes #590)
This commit is contained in:
@@ -63,6 +63,7 @@ public abstract class MixinMinecraft
|
|||||||
PostRenderCallback.EVENT.invoker().postRender();
|
PostRenderCallback.EVENT.invoker().postRender();
|
||||||
}
|
}
|
||||||
//#else
|
//#else
|
||||||
|
//$$ @Shadow long systemTime;
|
||||||
//#if MC>=10904
|
//#if MC>=10904
|
||||||
//$$ @Shadow protected abstract void runTickKeyboard() throws IOException;
|
//$$ @Shadow protected abstract void runTickKeyboard() throws IOException;
|
||||||
//$$ @Shadow protected abstract void runTickMouse() throws IOException;
|
//$$ @Shadow protected abstract void runTickMouse() throws IOException;
|
||||||
@@ -80,6 +81,8 @@ public abstract class MixinMinecraft
|
|||||||
//$$ public void replayModRunTickMouse() {
|
//$$ public void replayModRunTickMouse() {
|
||||||
//$$ try {
|
//$$ try {
|
||||||
//$$ runTickMouse();
|
//$$ runTickMouse();
|
||||||
|
//$$ // Update last tick time (MC ignores inputs when there hasn't been a tick in 200ms)
|
||||||
|
//$$ systemTime = Minecraft.getSystemTime();
|
||||||
//$$ } catch (IOException e) {
|
//$$ } catch (IOException e) {
|
||||||
//$$ e.printStackTrace();
|
//$$ e.printStackTrace();
|
||||||
//$$ }
|
//$$ }
|
||||||
@@ -94,7 +97,12 @@ public abstract class MixinMinecraft
|
|||||||
//$$
|
//$$
|
||||||
//$$ @Inject(method = "runTick", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/Minecraft;sendClickBlockToController(Z)V"), cancellable = true)
|
//$$ @Inject(method = "runTick", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/Minecraft;sendClickBlockToController(Z)V"), cancellable = true)
|
||||||
//$$ private void doEarlyReturnFromRunTick(CallbackInfo ci) {
|
//$$ private void doEarlyReturnFromRunTick(CallbackInfo ci) {
|
||||||
//$$ if (earlyReturn) ci.cancel();
|
//$$ if (earlyReturn) {
|
||||||
|
//$$ ci.cancel();
|
||||||
|
//$$
|
||||||
|
//$$ // Update last tick time (MC ignores inputs when there hasn't been a tick in 200ms)
|
||||||
|
//$$ systemTime = Minecraft.getSystemTime();
|
||||||
|
//$$ }
|
||||||
//$$ }
|
//$$ }
|
||||||
//#endif
|
//#endif
|
||||||
//$$ @Redirect(
|
//$$ @Redirect(
|
||||||
|
|||||||
Reference in New Issue
Block a user