Convert the middle part of the LoomGradlePlugin.LOOM_VERSION string to a short integer instead of a double
This commit is contained in:
parent
21c9f5df1e
commit
05319d5aeb
|
@ -67,7 +67,7 @@ subprojects {
|
||||||
if (LoomGradlePlugin.LOOM_VERSION.run {
|
if (LoomGradlePlugin.LOOM_VERSION.run {
|
||||||
val numberPos = indexOf('.') + 1
|
val numberPos = indexOf('.') + 1
|
||||||
substring(numberPos, indexOf('.', numberPos))
|
substring(numberPos, indexOf('.', numberPos))
|
||||||
}.toDouble() < 10) {
|
}.toShort() < 10) {
|
||||||
getDeclaredMethod("setRefmapName", String::class.java).invoke(this@configure, refmap)
|
getDeclaredMethod("setRefmapName", String::class.java).invoke(this@configure, refmap)
|
||||||
getDeclaredMethod("mixinConfig", String::class.java).invoke(this@configure, "snowygui-${project.name}.mixins.json")
|
getDeclaredMethod("mixinConfig", String::class.java).invoke(this@configure, "snowygui-${project.name}.mixins.json")
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue