In the Replay Viewer, the "Upload" button is no longer disabled when not logged in, instead it forwards to a Login Prompt on button click

This commit is contained in:
CrushedPixel
2015-06-04 16:14:34 +02:00
parent d15011eff6
commit b9c46578af
2 changed files with 8 additions and 8 deletions

View File

@@ -122,6 +122,10 @@ public class GuiUploadFile extends GuiScreen {
@Override
public void initGui() {
if(replayFile == null) return;
if(!AuthenticationHandler.isAuthenticated()) {
mc.displayGuiScreen(new GuiLoginPrompt(parent, this));
return;
}
if(fileTitleInput == null) {
fileTitleInput = new GuiTextField(GuiConstants.UPLOAD_NAME_INPUT, fontRendererObj, (this.width / 2) + 20 + 10, 21, Math.min(200, this.width - 20 - 260), 20);