Disabled Upload Button in Replay Viewer by Default (to prevent ArrayIndexOutOfBoundsException)
By default, Path Preview is disabled
This commit is contained in:
@@ -257,6 +257,8 @@ public class GuiReplayViewer extends GuiScreen implements GuiYesNoCallback {
|
||||
if(b) {
|
||||
currentFileUploaded = ReplayMod.uploadedFileHandler.isUploaded(replayFileList.get(replayGuiList.selected).first().first());
|
||||
uploadButton.enabled = !currentFileUploaded;
|
||||
} else {
|
||||
uploadButton.enabled = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user