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();