Fixed Race Condition which locked the user in the GuiReplaySaving caused by Minecraft opening the GUI in a delayed thread

This commit is contained in:
CrushedPixel
2015-06-01 19:44:34 +02:00
parent 394165cba4
commit 479523d883
4 changed files with 8 additions and 18 deletions

View File

@@ -18,6 +18,12 @@ public class GuiReplaySaving extends GuiScreen {
ReplayMod.replayFileAppender.addFinishListener(this);
}
@Override
public void setWorldAndResolution(Minecraft mc, int width, int height) {
super.setWorldAndResolution(mc, width, height);
ReplayMod.replayFileAppender.callListeners();
}
@Override
public void drawScreen(int mouseX, int mouseY, float partialTicks) {
this.drawDefaultBackground();

View File

@@ -164,7 +164,6 @@ public class GuiVideoRenderer extends GuiScreen {
drawString(fontRendererObj, leftString, width - 12 - fontRendererObj.getStringWidth(leftString),
previewCheckBox.yPosition + 5 + 20, Color.WHITE.getRGB());
super.drawScreen(mouseX, mouseY, partialTicks);
}
}