When initially asked to Log in, rename "Cancel" to "Skip" button to indicate that the user doesn't have to log in in order to use the mod

This commit is contained in:
CrushedPixel
2015-08-07 12:23:58 +02:00
parent 6e07bde07c
commit 40aaf7fbef
5 changed files with 13 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ public class GuiEventHandler {
if(ReplayMod.firstMainMenu) {
ReplayMod.firstMainMenu = false;
if(!AuthenticationHandler.isAuthenticated()) {
event.gui = new GuiLoginPrompt(event.gui, event.gui).toMinecraft();
event.gui = new GuiLoginPrompt(event.gui, event.gui, false).toMinecraft();
return;
}
} else {
@@ -179,7 +179,7 @@ public class GuiEventHandler {
if(AuthenticationHandler.isAuthenticated()) {
mc.displayGuiScreen(new GuiReplayCenter());
} else {
mc.displayGuiScreen(new GuiLoginPrompt(event.gui, new GuiReplayCenter()).toMinecraft());
mc.displayGuiScreen(new GuiLoginPrompt(event.gui, new GuiReplayCenter(), true).toMinecraft());
}
} else if(event.button.id == GuiConstants.REPLAY_EDITOR_BUTTON_ID) {
mc.displayGuiScreen(new GuiReplayEditor());