Skip to content

Commit c79e9e7

Browse files
committed
clean up log hiding logic for mc version jsons
1 parent 0b57a0b commit c79e9e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/ftb/util/DownloadUtils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public static String getStaticCreeperhostLinkOrBackup (String file, String backu
125125
return resolved;
126126
} else {
127127
Logger.logWarn("Using backupLink for " + file);
128-
if (!file.contains("1.8") || !file.contains("1.9") || !file.contains("1.10") || !file.contains("1.11")|| !file.contains("1.12")) {
128+
if (!file.contains("1.8") && !file.contains("1.9") && !file.contains("1.10") && !file.contains("1.11") && !file.contains("1.12")) {
129129
// FTB hosts own version.json fails. If we are here something failed. Why?
130130
Logger.logError("GET request for " + file + " failed. Please Send log to launcher team and provide your public IP address if possible.");
131131
TrackerUtils.sendPageView("getStaticCreeperhostLinkOrBackup", "GET_failed: " + file);
@@ -378,7 +378,7 @@ public static boolean backupIsValid (File file, String url) throws IOException {
378378
if (content != null) {
379379
Logger.logInfo("Remote: " + content.toUpperCase());
380380
} else {
381-
Logger.logError("could not find remote hash for " + url );
381+
Logger.logError("could not find remote hash for " + url);
382382
}
383383
return content.equalsIgnoreCase(result);
384384
}

0 commit comments

Comments
 (0)