Fix replay not properly starting during rendering on 1.7.10

This commit is contained in:
Jonas Herzig
2019-07-08 11:30:15 +02:00
parent 6ca1d037c1
commit 45ef15359e

View File

@@ -46,6 +46,7 @@ import org.lwjgl.glfw.GLFW;
import com.replaymod.render.hooks.ChunkLoadingRenderGlobal;
import static com.mojang.blaze3d.platform.GlStateManager.*;
//#else
//$$ import com.replaymod.replay.gui.screen.GuiOpeningReplay;
//$$ import static com.replaymod.core.versions.MCVer.GlStateManager.*;
//#endif
@@ -81,6 +82,9 @@ public class VideoRenderer implements RenderInfo {
//#if MC>=10800
private ChunkLoadingRenderGlobal chunkLoadingRenderGlobal;
//#endif
//#if MC<10800
//$$ private GuiOpeningReplay guiOpeningReplay;
//#endif
private int framesDone;
private int totalFrames;
@@ -211,6 +215,12 @@ public class VideoRenderer implements RenderInfo {
//#endif
);
//#if MC<10800
//$$ if (guiOpeningReplay != null) {
//$$ guiOpeningReplay.handleInput();
//$$ }
//#endif
int elapsedTicks = timer.ticksThisFrame;
while (elapsedTicks-- > 0) {
tick();
@@ -377,6 +387,12 @@ public class VideoRenderer implements RenderInfo {
//$$ }
//#endif
//#if MC<10800
//$$ if (mc.currentScreen instanceof GuiOpeningReplay) {
//$$ guiOpeningReplay = (GuiOpeningReplay) mc.currentScreen;
//$$ }
//#endif
mc.currentScreen = gui.toMinecraft();
//#if MC>=10800 && MC<11300
//$$ try {