Created GuiReplayInstanceChooser which allows users to define whether they want to load their modified version of an online replay or load the original

This commit is contained in:
CrushedPixel
2015-07-16 16:17:27 +02:00
parent b4ed4fb31b
commit de07811229
3 changed files with 172 additions and 8 deletions

View File

@@ -15,7 +15,6 @@ import eu.crushedpixel.replaymod.gui.elements.*;
import eu.crushedpixel.replaymod.gui.replayviewer.GuiReplayViewer;
import eu.crushedpixel.replaymod.holders.GuiEntryListStringEntry;
import eu.crushedpixel.replaymod.online.authentication.AuthenticationHandler;
import eu.crushedpixel.replaymod.replay.ReplayHandler;
import net.minecraft.client.gui.*;
import net.minecraft.client.resources.I18n;
import org.lwjgl.input.Keyboard;
@@ -287,11 +286,7 @@ public class GuiReplayCenter extends GuiScreen implements GuiYesNoCallback {
if(f == null) {
new GuiReplayDownloading(info).display();
} else {
try {
ReplayHandler.startReplay(f);
} catch(Exception e) {
e.printStackTrace();
}
mc.displayGuiScreen(new GuiReplayInstanceChooser(info, f));
}
}
} else if(button.id == GuiConstants.CENTER_FAV_REPLAY_BUTTON) {