Skip to content

Commit

Permalink
Update version fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
minhh2792 committed Jun 27, 2022
1 parent 35d81e0 commit cf05459
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/server/0001-Pearl-Rebrand.patch
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ index e0b1f0671d16ddddcb6725acd25a1d1d69e42701..b2b1835a5646310fdc0aa73da0c4741e
.option(LineReader.Option.COMPLETE_IN_WORD, true);
diff --git a/src/main/java/me/minhh2792/pearl/PearlVersionFetcher.java b/src/main/java/me/minhh2792/pearl/PearlVersionFetcher.java
new file mode 100644
index 0000000000000000000000000000000000000000..da88a794ffabc78209aad1b0d91cf5ba025f8d14
index 0000000000000000000000000000000000000000..a9e2cd2c6177d0319521a83eadc51be71386394d
--- /dev/null
+++ b/src/main/java/me/minhh2792/pearl/PearlVersionFetcher.java
@@ -0,0 +1,120 @@
Expand All @@ -87,7 +87,7 @@ index 0000000000000000000000000000000000000000..da88a794ffabc78209aad1b0d91cf5ba
+
+public class PearlVersionFetcher 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 = "main";
+ private static final String GITHUB_BRANCH_NAME = "ver/1.18.2";
+ private static final String DOWNLOAD_PAGE = "https://github.com/Pearl-Project/Pearl/releases";
+ private static @Nullable String mcVer;
+
Expand Down

0 comments on commit cf05459

Please sign in to comment.