fix: propagate MC and yarn versions (those aren't likely to be different)
This commit is contained in:
parent
a7c769a080
commit
3e1ab4e51d
|
@ -20,11 +20,8 @@ insertEarlyAfterEvaluate {
|
|||
|
||||
if (!isRoot) versionS = rootProject.versionS
|
||||
|
||||
if (rootArgs.loaderKind.get() == lomArgs.loaderKind.get()) {
|
||||
// Platform is set manually. User will need to configure lom themselves too
|
||||
lom {
|
||||
copyFrom(rootArgs)
|
||||
}
|
||||
lom {
|
||||
copyFrom(rootArgs)
|
||||
}
|
||||
|
||||
if (rootArgs.libJfVersion.isPresent) {
|
||||
|
|
|
@ -26,11 +26,10 @@ interface LomExtension {
|
|||
}
|
||||
|
||||
fun copyFrom(ext: LomExtension) {
|
||||
if (loaderKind.get() != ext.loaderKind.get()) {
|
||||
throw IllegalArgumentException("Cannot copy from a config meant for a different loader")
|
||||
}
|
||||
yarnBuild.set(ext.yarnBuild)
|
||||
minecraftVersion.set(ext.minecraftVersion)
|
||||
loaderVersion.set(ext.loaderVersion)
|
||||
if (loaderKind.get() == ext.loaderKind.get()) {
|
||||
loaderVersion.set(ext.loaderVersion)
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue