diff --git a/build.gradle b/build.gradle index a802e63..dd1940d 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,7 @@ plugins { id 'signing' } -version = '0.1.3' +version = '0.1.4' group = 'org.teacon' archivesBaseName = 'RemoteSync-FML' @@ -145,4 +145,4 @@ task("githubActionOutput") { println "::set-output name=artifact_path::${shadowJar.archiveFile.get().asFile.absolutePath}" println "::set-output name=artifact_name::${shadowJar.archiveFileName.get()}" } -} \ No newline at end of file +} diff --git a/src/main/java/org/teacon/sync/Config.java b/src/main/java/org/teacon/sync/Config.java index f35d560..7ef0848 100644 --- a/src/main/java/org/teacon/sync/Config.java +++ b/src/main/java/org/teacon/sync/Config.java @@ -39,6 +39,10 @@ public final class Config { * Minecraft home directory. */ public String modDir = "synced_mods"; + /** + * Local mod list location for downloading + */ + public String localModList = "mod_list.json"; /** * Path to the public keys ring file, relative to the Minecraft home directory. */ diff --git a/src/main/java/org/teacon/sync/SyncedModLocator.java b/src/main/java/org/teacon/sync/SyncedModLocator.java index daae435..8ec85a1 100644 --- a/src/main/java/org/teacon/sync/SyncedModLocator.java +++ b/src/main/java/org/teacon/sync/SyncedModLocator.java @@ -89,7 +89,7 @@ public SyncedModLocator() throws Exception { this.modDirBase = Files.createDirectories(gameDir.resolve(cfg.modDir)); this.fetchPathsTask = CompletableFuture.supplyAsync(() -> { try { - return Utils.fetch(cfg.modList, gameDir.resolve("mod_list.json"), cfg.timeout); + return Utils.fetch(cfg.modList, gameDir.resolve(cfg.localModList), cfg.timeout); } catch (IOException e) { LOGGER.warn("Failed to download mod list", e); throw new RuntimeException(e);