添加对 1.21.11-pre1/2_unobfuscated 的支持 (#4829)
Co-authored-by: Glavo <zjx001202@gmail.com>
This commit is contained in:
@@ -30,7 +30,7 @@ public final class MinecraftWiki {
|
|||||||
private static final Pattern SNAPSHOT_PATTERN = Pattern.compile("^[0-9]{2}w[0-9]{2}.+$");
|
private static final Pattern SNAPSHOT_PATTERN = Pattern.compile("^[0-9]{2}w[0-9]{2}.+$");
|
||||||
|
|
||||||
public static String getWikiLink(SupportedLocale locale, GameRemoteVersion version) {
|
public static String getWikiLink(SupportedLocale locale, GameRemoteVersion version) {
|
||||||
String wikiVersion = version.getSelfVersion();
|
String wikiVersion = StringUtils.removeSuffix(version.getSelfVersion(), "_unobfuscated");
|
||||||
var gameVersion = GameVersionNumber.asGameVersion(wikiVersion);
|
var gameVersion = GameVersionNumber.asGameVersion(wikiVersion);
|
||||||
|
|
||||||
if (locale.getLocale().getLanguage().equals("lzh")) {
|
if (locale.getLocale().getLanguage().equals("lzh")) {
|
||||||
@@ -80,8 +80,6 @@ public final class MinecraftWiki {
|
|||||||
if (SNAPSHOT_PATTERN.matcher(wikiVersion).matches()) {
|
if (SNAPSHOT_PATTERN.matcher(wikiVersion).matches()) {
|
||||||
if (wikiVersion.equals("22w13oneblockatatime"))
|
if (wikiVersion.equals("22w13oneblockatatime"))
|
||||||
wikiVersion = "22w13oneBlockAtATime";
|
wikiVersion = "22w13oneBlockAtATime";
|
||||||
else
|
|
||||||
wikiVersion = StringUtils.removeSuffix(wikiVersion, "_unobfuscated");
|
|
||||||
return locale.i18n("wiki.version.game.snapshot", wikiVersion) + variantSuffix;
|
return locale.i18n("wiki.version.game.snapshot", wikiVersion) + variantSuffix;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,19 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"id": "1.21.11-pre2_unobfuscated",
|
||||||
|
"type": "unobfuscated",
|
||||||
|
"url": "https://piston-meta.mojang.com/v1/packages/2955ce0af0512fdfe53ff0740b017344acf6f397/1.21.11-pre2_unobfuscated.json",
|
||||||
|
"time": "2025-11-21T12:07:21+00:00",
|
||||||
|
"releaseTime": "2025-11-21T12:07:21+00:00"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "1.21.11-pre1_unobfuscated",
|
||||||
|
"type": "unobfuscated",
|
||||||
|
"url": "https://piston-meta.mojang.com/v1/packages/9c267f8dda2728bae55201a753cdd07b584709f1/1.21.11-pre1_unobfuscated.json",
|
||||||
|
"time": "2025-11-19T08:30:46+00:00",
|
||||||
|
"releaseTime": "2025-11-19T08:30:46+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "25w46a_unobfuscated",
|
"id": "25w46a_unobfuscated",
|
||||||
"type": "unobfuscated",
|
"type": "unobfuscated",
|
||||||
|
|||||||
@@ -857,3 +857,7 @@
|
|||||||
25w45a_unobfuscated
|
25w45a_unobfuscated
|
||||||
25w46a
|
25w46a
|
||||||
25w46a_unobfuscated
|
25w46a_unobfuscated
|
||||||
|
1.21.11-pre1
|
||||||
|
1.21.11-pre1_unobfuscated
|
||||||
|
1.21.11-pre2
|
||||||
|
1.21.11-pre2_unobfuscated
|
||||||
Reference in New Issue
Block a user