Convert the middle part of the LoomGradlePlugin.LOOM_VERSION string to a short integer instead of a double

This commit is contained in:
Username404 2021-10-27 09:50:22 +02:00
parent 21c9f5df1e
commit 05319d5aeb
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ subprojects {
if (LoomGradlePlugin.LOOM_VERSION.run {
val numberPos = indexOf('.') + 1
substring(numberPos, indexOf('.', numberPos))
}.toDouble() < 10) {
}.toShort() < 10) {
getDeclaredMethod("setRefmapName", String::class.java).invoke(this@configure, refmap)
getDeclaredMethod("mixinConfig", String::class.java).invoke(this@configure, "snowygui-${project.name}.mixins.json")
} else {