mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 09:57:43 +01:00
[ci skip] missed this from the upstream
This commit is contained in:
@@ -58,7 +58,7 @@ index 4998aff0b7cb084dcda15c6a18bbe45e99b6000a..d23ecfabf6bf1e355fb2efe5abd80236
|
|||||||
standardInput = System.`in`
|
standardInput = System.`in`
|
||||||
workingDir = rootProject.layout.projectDirectory
|
workingDir = rootProject.layout.projectDirectory
|
||||||
diff --git a/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java b/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java b/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java
|
||||||
index 532306cacd52579cdf37e4aca25887b1ed3ba6a1..eddc4426301d429968f44d493bae4e71b5969325 100644
|
index 532306cacd52579cdf37e4aca25887b1ed3ba6a1..6d36fc6d8e22d9b68dea3830f6ecc8763184c343 100644
|
||||||
--- a/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java
|
--- a/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java
|
||||||
+++ b/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java
|
+++ b/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java
|
||||||
@@ -35,7 +35,10 @@ public class PaperVersionFetcher implements VersionFetcher {
|
@@ -35,7 +35,10 @@ public class PaperVersionFetcher implements VersionFetcher {
|
||||||
@@ -106,7 +106,7 @@ index 532306cacd52579cdf37e4aca25887b1ed3ba6a1..eddc4426301d429968f44d493bae4e71
|
|||||||
.append(Component.newline())
|
.append(Component.newline())
|
||||||
.append(text("Download the new version at: ")
|
.append(text("Download the new version at: ")
|
||||||
.append(text(DOWNLOAD_PAGE, NamedTextColor.GOLD)
|
.append(text(DOWNLOAD_PAGE, NamedTextColor.GOLD)
|
||||||
@@ -86,15 +89,12 @@ public class PaperVersionFetcher implements VersionFetcher {
|
@@ -86,18 +89,15 @@ public class PaperVersionFetcher implements VersionFetcher {
|
||||||
private static int fetchDistanceFromSiteApi(final ServerBuildInfo build, final int jenkinsBuild) {
|
private static int fetchDistanceFromSiteApi(final ServerBuildInfo build, final int jenkinsBuild) {
|
||||||
try {
|
try {
|
||||||
try (final BufferedReader reader = Resources.asCharSource(
|
try (final BufferedReader reader = Resources.asCharSource(
|
||||||
@@ -124,7 +124,11 @@ index 532306cacd52579cdf37e4aca25887b1ed3ba6a1..eddc4426301d429968f44d493bae4e71
|
|||||||
+ final int latest = json.getAsJsonObject("builds").getAsJsonPrimitive("latest").getAsInt(); // Purpur
|
+ final int latest = json.getAsJsonObject("builds").getAsJsonPrimitive("latest").getAsInt(); // Purpur
|
||||||
return latest - jenkinsBuild;
|
return latest - jenkinsBuild;
|
||||||
} catch (final JsonSyntaxException ex) {
|
} catch (final JsonSyntaxException ex) {
|
||||||
LOGGER.error("Error parsing json from Paper's downloads API", ex);
|
- LOGGER.error("Error parsing json from Paper's downloads API", ex);
|
||||||
|
+ LOGGER.error("Error parsing json from Purpur's downloads API", ex); // Purpur
|
||||||
|
return DISTANCE_ERROR;
|
||||||
|
}
|
||||||
|
} catch (final IOException e) {
|
||||||
@@ -141,6 +141,6 @@ public class PaperVersionFetcher implements VersionFetcher {
|
@@ -141,6 +141,6 @@ public class PaperVersionFetcher implements VersionFetcher {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user