Change ModCore messages cause people keep thinking those are errors

This commit is contained in:
Jonas Herzig
2020-05-23 13:34:27 +02:00
parent b68d077b38
commit 154952a8ac
3 changed files with 7 additions and 3 deletions

View File

@@ -53,7 +53,9 @@ public class ReplayModMMLauncher implements Runnable {
String mcVer = minecraft.get().getMetadata().getVersion().getFriendlyString(); String mcVer = minecraft.get().getMetadata().getVersion().getFriendlyString();
int result = ModCoreInstaller.initialize(gameDir, mcVer + "_fabric"); int result = ModCoreInstaller.initialize(gameDir, mcVer + "_fabric");
System.out.println("ReplayMod ModCore init result: " + result); if (result != -2) { // Don't even bother logging the result if there's no ModCore for this version.
System.out.println("ReplayMod ModCore init result: " + result);
}
if (ModCoreInstaller.isErrored()) { if (ModCoreInstaller.isErrored()) {
System.err.println(ModCoreInstaller.getError()); System.err.println(ModCoreInstaller.getError());
} }

View File

@@ -57,7 +57,9 @@
//$$ } //$$ }
//$$ //$$
//$$ int result = ModCoreInstaller.initialize(Launch.minecraftHome, mcVer + "_forge"); //$$ int result = ModCoreInstaller.initialize(Launch.minecraftHome, mcVer + "_forge");
//$$ System.out.println("ReplayMod ModCore init result: " + result); //$$ if (result != -2) { // Don't even bother logging the result if there's no ModCore for this version.
//$$ System.out.println("ReplayMod ModCore init result: " + result);
//$$ }
//$$ if (ModCoreInstaller.isErrored()) { //$$ if (ModCoreInstaller.isErrored()) {
//$$ System.err.println(ModCoreInstaller.getError()); //$$ System.err.println(ModCoreInstaller.getError());
//$$ } //$$ }

View File

@@ -131,7 +131,7 @@ public class ModCoreInstaller {
} }
JsonHolder jsonHolder = fetchJSON(VERSION_URL); JsonHolder jsonHolder = fetchJSON(VERSION_URL);
if (!jsonHolder.has(minecraftVersion)) { if (!jsonHolder.has(minecraftVersion)) {
System.out.println("No ModCore target for " + minecraftVersion + ". Aborting install"); System.out.println("No ModCore target for " + minecraftVersion + ". This in fine, unless you're specifically looking for ModCore.");
return -2; return -2;
} }
String latestRemote = jsonHolder.optString(minecraftVersion); String latestRemote = jsonHolder.optString(minecraftVersion);