From cf05459d5db2e8ccd193afa7d403f6e95661b40e Mon Sep 17 00:00:00 2001 From: Minh Nguyen Date: Mon, 27 Jun 2022 15:38:27 +0000 Subject: [PATCH] Update version fetcher --- patches/server/0001-Pearl-Rebrand.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/server/0001-Pearl-Rebrand.patch b/patches/server/0001-Pearl-Rebrand.patch index 46a4646..8dd1521 100644 --- a/patches/server/0001-Pearl-Rebrand.patch +++ b/patches/server/0001-Pearl-Rebrand.patch @@ -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 @@ @@ -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; +