Fix #4325: 修复未将 15w14a 识别为愚人节版本的问题 (#4327)

This commit is contained in:
Glavo
2025-08-24 22:27:49 +08:00
committed by GitHub
parent 933b7cab2f
commit 06b7b1e574
3 changed files with 35 additions and 4 deletions

View File

@@ -98,8 +98,16 @@ public abstract class GameVersionNumber implements Comparable<GameVersionNumber>
this.value = value;
}
public boolean isSpecial() {
return this instanceof Special;
public boolean isAprilFools() {
if (this instanceof Special)
return true;
if (this instanceof Snapshot) {
Snapshot snapshot = (Snapshot) this;
return snapshot.intValue == Snapshot.toInt(15, 14, 'a');
}
return false;
}
enum Type {