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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -254,7 +254,7 @@ public class ReplaySettings {
|
||||
linear(false, "replaymod.gui.settings.interpolation"),
|
||||
lighting(false, "replaymod.gui.settings.lighting"),
|
||||
useResources(true, "replaymod.gui.settings.resources"),
|
||||
previewPath(true, "replaymod.gui.settings.pathpreview");
|
||||
previewPath(false, "replaymod.gui.settings.pathpreview");
|
||||
|
||||
private Object value;
|
||||
private String name;
|
||||
|
||||
Reference in New Issue
Block a user