mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 07:48:53 +01:00
Track correct branch for /version
This commit is contained in:
parent
7dbceea208
commit
bc447dc137
1 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
From 66daf1aec0b98f36b7b650ab202b7284d518035a Mon Sep 17 00:00:00 2001
|
||||
From 2d3fd16046dd4deee5a2cd2f7f5cac0bf53c138e Mon Sep 17 00:00:00 2001
|
||||
From: Zach Brown <zach@zachbr.io>
|
||||
Date: Mon, 27 May 2019 03:40:05 -0500
|
||||
Subject: [PATCH] Implement Paper VersionChecker
|
||||
|
@ -6,7 +6,7 @@ Subject: [PATCH] Implement Paper VersionChecker
|
|||
|
||||
diff --git a/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java b/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java
|
||||
new file mode 100644
|
||||
index 000000000..ded51d042
|
||||
index 000000000..5deed3e25
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/com/destroystokyo/paper/PaperVersionFetcher.java
|
||||
@@ -0,0 +1,115 @@
|
||||
|
@ -25,7 +25,7 @@ index 000000000..ded51d042
|
|||
+
|
||||
+public class PaperVersionFetcher implements VersionFetcher {
|
||||
+ private static final java.util.regex.Pattern VER_PATTERN = java.util.regex.Pattern.compile("^([0-9\\.]*)\\-.*R"); // R is an anchor, will always give '-R' at end
|
||||
+ private static final String GITHUB_BRANCH_NAME = "ver/1.14";
|
||||
+ private static final String GITHUB_BRANCH_NAME = "master";
|
||||
+ private static @Nullable String mcVer;
|
||||
+
|
||||
+ @Override
|
||||
|
@ -126,7 +126,7 @@ index 000000000..ded51d042
|
|||
+ }
|
||||
+}
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
||||
index 2733c63aa..1b8d94d29 100644
|
||||
index 48a191ae0..21bfdf9e7 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
|
||||
@@ -293,6 +293,11 @@ public final class CraftMagicNumbers implements UnsafeValues {
|
||||
|
@ -142,5 +142,5 @@ index 2733c63aa..1b8d94d29 100644
|
|||
|
||||
/**
|
||||
--
|
||||
2.22.0
|
||||
2.24.1
|
||||
|
||||
|
|
Loading…
Reference in a new issue