[1.14] Fix recording not always being stopped

This commit is contained in:
Jonas Herzig
2019-06-14 18:18:27 +02:00
parent d15fa6a3f9
commit 4dd02f8299
2 changed files with 50 additions and 2 deletions

View File

@@ -7,8 +7,11 @@ import com.replaymod.replay.camera.CameraEntity;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.render.RenderTickCounter;
//#if MC>=11400
import com.replaymod.core.ReplayMod;
//#endif
//#if MC>=11300
import com.replaymod.core.versions.MCVer;
import org.lwjgl.glfw.GLFW;
//#else
//$$ import net.minecraft.client.settings.KeyBinding;
@@ -57,6 +60,10 @@ public class InputReplayTimer extends WrappedTimer {
//$$ FML_BUS.post(new RunScheduledTasks());
//#endif
//#if MC>=11400
ReplayMod.instance.executor.executeTaskQueue();
//#endif
// If we are in a replay, we have to manually process key and mouse events as the
// tick speed may vary or there may not be any ticks at all (when the replay is paused)
if (mod.getReplayHandler() != null) {