Removed the opening of GuiReplaySaving to allow for more general approach

This commit is contained in:
CrushedPixel
2015-06-01 11:05:03 +02:00
parent 98c2b65023
commit 7aaae3ea5c
4 changed files with 12 additions and 16 deletions

View File

@@ -1,13 +1,10 @@
package eu.crushedpixel.replaymod.gui;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.resources.I18n;
public class GuiReplaySaving extends GuiScreen {
public static boolean replaySaving = false;
private GuiScreen waiting = null;
public GuiReplaySaving(GuiScreen waiting) {
@@ -20,9 +17,10 @@ public class GuiReplaySaving extends GuiScreen {
this.drawCenteredString(this.fontRendererObj, I18n.format("replaymod.gui.replaysaving.title"), this.width / 2, 20, 16777215);
this.drawCenteredString(this.fontRendererObj, I18n.format("replaymod.gui.replaysaving.message"), this.width / 2, 40, 16777215);
super.drawScreen(mouseX, mouseY, partialTicks);
if(!replaySaving) {
Minecraft.getMinecraft().displayGuiScreen(waiting);
}
}
public void dispatch() {
mc.displayGuiScreen(waiting);
}
}