mirror of
https://github.com/CPTProgrammer/ChatPlus.git
synced 2026-09-19 23:23:38 +08:00
Add compatibility for new Minecraft version numbering
- Use ^ version range for major version 26+ instead of ~ - Match only major version for 26+ in latest compatible version lookup
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ static String findLatestCompatibleVersion(List<String> sortedVersions, String ve
|
||||
sortedVersions.findAll {
|
||||
def versionList = it.tokenize(".")*.toInteger()
|
||||
compareMinecraftVersion(versionList, targetVersionList) <= 0 &&
|
||||
(targetVersionList[0] == versionList[0] && targetVersionList[1] == versionList[1])
|
||||
(targetVersionList[0] == versionList[0] && (targetVersionList[0] >= 26 || targetVersionList[1] == versionList[1]))
|
||||
}.max { a, b -> compareMinecraftVersion(a, b) }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user