Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jul 31, 2024
1 parent f17c854 commit 992c111
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ open class MinecraftProvider(project: Project, sourceSet: SourceSet) : Minecraft

override fun libraryFilter(filter: (String) -> String?) {
if (applied) throw IllegalStateException("minecraft config already applied for $sourceSet")
libraryReplaceMap.addFirst { dep ->
libraryReplaceMap.add(0) { dep ->
true to filter(dep)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ open class JarModAgentMinecraftTransformer(
config.jvmArgs("-D${JMA_TRANSFORMERS}=${transforms.joinToString(File.pathSeparator)}")
}
// priority classpath
val priorityClasspath = detectProjectSourceSets().map { it.second.output.classesDirs.toMutableSet().also {set-> it.second.output.resourcesDir.let { set.add(it) } } }.flatten()
val priorityClasspath = provider.detectCombineWithSourceSets().map { it.second.output.classesDirs.toMutableSet().also {set-> it.second.output.resourcesDir.let { set.add(it) } } }.flatten()
if (priorityClasspath.isNotEmpty()) {
config.jvmArgs("-D${JMA_PRIORITY_CLASSPATH}=${priorityClasspath.joinToString(File.pathSeparator) { it.absolutePath }}")
}
Expand Down

0 comments on commit 992c111

Please sign in to comment.