Opens "Please wait" GUI Screen if Replay needs to be edited by ReplayFileAppender

Added ReplayExitEvent
This commit is contained in:
CrushedPixel
2015-07-02 13:24:50 +02:00
parent bfe721c00c
commit d5007692de
4 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
package eu.crushedpixel.replaymod.events;
import net.minecraftforge.fml.common.eventhandler.Event;
public class ReplayExitEvent extends Event {
}

View File

@@ -166,7 +166,6 @@ public class GuiEventHandler {
if(ReplayHandler.isInReplay() && event.gui instanceof GuiIngameMenu && event.button.id == GuiConstants.EXIT_REPLAY_BUTTON) {
if(ReplayHandler.isInPath()) ReplayProcess.stopReplayProcess(false);
ReplayHandler.endReplay();
event.button.enabled = false;
@@ -179,6 +178,8 @@ public class GuiEventHandler {
mc.displayGuiScreen(new GuiMainMenu());
ReplayGuiRegistry.show();
ReplayHandler.endReplay();
}
}