Removed the opening of GuiReplaySaving to allow for more general approach
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user