diff --git a/src/minecraft/kotlin/xyz/wagyourtail/unimined/internal/minecraft/patch/reindev/ReIndevProvider.kt b/src/minecraft/kotlin/xyz/wagyourtail/unimined/internal/minecraft/patch/reindev/ReIndevProvider.kt index 2f936206..564ac2c3 100644 --- a/src/minecraft/kotlin/xyz/wagyourtail/unimined/internal/minecraft/patch/reindev/ReIndevProvider.kt +++ b/src/minecraft/kotlin/xyz/wagyourtail/unimined/internal/minecraft/patch/reindev/ReIndevProvider.kt @@ -18,21 +18,19 @@ class ReIndevProvider(project: Project, sourceSet: SourceSet) : MinecraftProvide init { // Required for the following [2.9.4+legacyfabric.8,) dependency project.unimined.legacyFabricMaven() - project.configurations.configureEach { - it.resolutionStrategy.eachDependency { - val group = it.requested.group - val name = it.requested.name - val module = "$group:$name" - if (module == "org.ow2.asm:asm-all") { - // Upgrades the class compatibility level to Java 8 to match ReIndev - it.useVersion("5.2") - } else if (group.startsWith("org.lwjgl")) { - // Fixes several bugs, including failure to launch on Linux - it.useVersion("[2.9.4+legacyfabric.8,)") - } else if (module == "net.java.jinput:jinput") { - // Upgrading the JInput version to the latest fixes minor bugs like incompatible version notices - it.useVersion("[${it.requested.version},2.0.9]") - } + minecraftLibraries.resolutionStrategy.eachDependency { + val group = it.requested.group + val name = it.requested.name + val module = "$group:$name" + if (module == "org.ow2.asm:asm-all") { + // Upgrades the class compatibility level to Java 8 to match ReIndev + it.useVersion("5.2") + } else if (group.startsWith("org.lwjgl")) { + // Fixes several bugs, including failure to launch on Linux + it.useVersion("[2.9.4+legacyfabric.8,)") + } else if (module == "net.java.jinput:jinput") { + // Upgrading the JInput version to the latest fixes minor bugs like incompatible version notices + it.useVersion("[${it.requested.version},2.0.9]") } }