We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac49c9a commit 6b5f38cCopy full SHA for 6b5f38c
module/bukkit-nms/src/main/kotlin/taboolib/module/nms/MinecraftVersion.kt
@@ -119,15 +119,15 @@ object MinecraftVersion {
119
* 主版本号
120
*/
121
val major by unsafeLazy {
122
- supportedVersion.indexOfFirst { it.contains(runningVersion) }
+ supportedVersion.indexOfFirst { it.any { ver -> ver.contains(runningVersion) } }
123
}
124
125
/**
126
* 次版本号
127
128
val minor by unsafeLazy {
129
if (major != -1) {
130
- supportedVersion[major].indexOf(runningVersion)
+ supportedVersion[major].indexOfFirst { it.contains(runningVersion) }
131
} else {
132
-1
133
0 commit comments