mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
05dfa62d32
Updated Upstream (Bukkit/CraftBukkit/Spigot) Bukkit Changes: 2dcc44dc SPIGOT-4307: Fix hacky API for banners on shields e0fc6572 SPIGOT-4309: Add "forced" display of particles efeeab2f Add index to README.md for easier navigation f502bc6f Update to Minecraft 1.13.1 CraftBukkit Changes:d0bb0a1d
Fix some tests randomly failing997d378d
Fix client stall in specific teleportation scenariosb3dc2366
SPIGOT-4307: Fix hacky API for banners on shields2a271162
SPIGOT-4301: Fix more invalid enchants5d0d83bb
SPIGOT-4309: Add "forced" display of particlesa6772578
Add additional tests for CraftBlockDatace1af0c3
Update to Minecraft 1.13.1 Spigot Changes: 2440e189 Rebuild patches 4ecffced Update to Minecraft 1.13.1
42 lines
No EOL
2.3 KiB
Diff
42 lines
No EOL
2.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Zach Brown <1254957+zachbr@users.noreply.github.com>
|
|
Date: Thu, 19 Jul 2018 17:32:47 -0500
|
|
Subject: [PATCH] Use specific 1.13 versioning branch/build name
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/command/defaults/VersionCommand.java b/src/main/java/org/bukkit/command/defaults/VersionCommand.java
|
|
index c45faf4cb..7041085c3 100644
|
|
--- a/src/main/java/org/bukkit/command/defaults/VersionCommand.java
|
|
+++ b/src/main/java/org/bukkit/command/defaults/VersionCommand.java
|
|
@@ -0,0 +0,0 @@ public class VersionCommand extends BukkitCommand {
|
|
return getFromJenkins(currentVer);
|
|
} catch (NumberFormatException ex) {
|
|
verInfo = verInfo.replace("\"", "");
|
|
- return getFromRepo("PaperMC/Paper", verInfo);
|
|
+ return getFromRepo("PaperMC/Paper", "pre/1.13", verInfo);
|
|
}
|
|
/*
|
|
BufferedReader reader = Resources.asCharSource(
|
|
@@ -0,0 +0,0 @@ public class VersionCommand extends BukkitCommand {
|
|
private static int getFromJenkins(int currentVer) {
|
|
try {
|
|
BufferedReader reader = Resources.asCharSource(
|
|
- new URL("https://ci.destroystokyo.com/job/Paper/lastSuccessfulBuild/buildNumber"), // Paper
|
|
+ new URL("https://ci.destroystokyo.com/job/Paper-1.13/lastSuccessfulBuild/buildNumber"), // Paper
|
|
Charsets.UTF_8
|
|
).openBufferedStream();
|
|
try {
|
|
@@ -0,0 +0,0 @@ public class VersionCommand extends BukkitCommand {
|
|
}
|
|
|
|
// Contributed by Techcable <Techcable@outlook.com> in GH PR #65
|
|
- private static final String BRANCH = "master";
|
|
- private static int getFromRepo(String repo, String hash) {
|
|
+ private static int getFromRepo(String repo, String branch, String hash) {
|
|
try {
|
|
- HttpURLConnection connection = (HttpURLConnection) new URL("https://api.github.com/repos/" + repo + "/compare/" + BRANCH + "..." + hash).openConnection();
|
|
+ HttpURLConnection connection = (HttpURLConnection) new URL("https://api.github.com/repos/" + repo + "/compare/" + branch + "..." + hash).openConnection();
|
|
connection.connect();
|
|
if (connection.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) return -2; // Unknown commit
|
|
try (
|
|
--
|