Fix replay not properly starting during rendering on 1.7.10
This commit is contained in:
@@ -46,6 +46,7 @@ import org.lwjgl.glfw.GLFW;
|
|||||||
import com.replaymod.render.hooks.ChunkLoadingRenderGlobal;
|
import com.replaymod.render.hooks.ChunkLoadingRenderGlobal;
|
||||||
import static com.mojang.blaze3d.platform.GlStateManager.*;
|
import static com.mojang.blaze3d.platform.GlStateManager.*;
|
||||||
//#else
|
//#else
|
||||||
|
//$$ import com.replaymod.replay.gui.screen.GuiOpeningReplay;
|
||||||
//$$ import static com.replaymod.core.versions.MCVer.GlStateManager.*;
|
//$$ import static com.replaymod.core.versions.MCVer.GlStateManager.*;
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
@@ -81,6 +82,9 @@ public class VideoRenderer implements RenderInfo {
|
|||||||
//#if MC>=10800
|
//#if MC>=10800
|
||||||
private ChunkLoadingRenderGlobal chunkLoadingRenderGlobal;
|
private ChunkLoadingRenderGlobal chunkLoadingRenderGlobal;
|
||||||
//#endif
|
//#endif
|
||||||
|
//#if MC<10800
|
||||||
|
//$$ private GuiOpeningReplay guiOpeningReplay;
|
||||||
|
//#endif
|
||||||
|
|
||||||
private int framesDone;
|
private int framesDone;
|
||||||
private int totalFrames;
|
private int totalFrames;
|
||||||
@@ -211,6 +215,12 @@ public class VideoRenderer implements RenderInfo {
|
|||||||
//#endif
|
//#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//#if MC<10800
|
||||||
|
//$$ if (guiOpeningReplay != null) {
|
||||||
|
//$$ guiOpeningReplay.handleInput();
|
||||||
|
//$$ }
|
||||||
|
//#endif
|
||||||
|
|
||||||
int elapsedTicks = timer.ticksThisFrame;
|
int elapsedTicks = timer.ticksThisFrame;
|
||||||
while (elapsedTicks-- > 0) {
|
while (elapsedTicks-- > 0) {
|
||||||
tick();
|
tick();
|
||||||
@@ -377,6 +387,12 @@ public class VideoRenderer implements RenderInfo {
|
|||||||
//$$ }
|
//$$ }
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
|
//#if MC<10800
|
||||||
|
//$$ if (mc.currentScreen instanceof GuiOpeningReplay) {
|
||||||
|
//$$ guiOpeningReplay = (GuiOpeningReplay) mc.currentScreen;
|
||||||
|
//$$ }
|
||||||
|
//#endif
|
||||||
|
|
||||||
mc.currentScreen = gui.toMinecraft();
|
mc.currentScreen = gui.toMinecraft();
|
||||||
//#if MC>=10800 && MC<11300
|
//#if MC>=10800 && MC<11300
|
||||||
//$$ try {
|
//$$ try {
|
||||||
|
|||||||
Reference in New Issue
Block a user