fix FilterProjectDir vanillaJar input

This commit is contained in:
Jake Potrebic 2023-06-10 12:21:10 -07:00
parent 3f6c7a5feb
commit c2d4fcb084
No known key found for this signature in database
GPG key ID: ECE0B3C133C016C5
2 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ import org.gradle.plugins.ide.idea.model.IdeaModel
fun Project.setupServerProject(
parent: Project,
remappedJar: Any,
remappedJar: Provider<RegularFile>,
remappedJarSources: Any,
mcDevSourceDir: Path,
libsFile: Any,
@ -64,7 +64,7 @@ fun Project.setupServerProject(
val filterProjectDir by tasks.registering<FilterProjectDir> {
inputSrcDir.set(file("src/main/java"))
inputResourcesDir.set(file("src/main/resources"))
vanillaJar.set(parent.file(remappedJar))
vanillaJar.set(remappedJar)
outputJar.set(parent.layout.cache.resolve(FINAL_FILTERED_REMAPPED_JAR))
}

View file

@ -169,7 +169,7 @@ class PaperweightPatcher : Plugin<Project> {
val (_, reobfJar) = serverProj.setupServerProject(
target,
upstreamData.map { it.remappedJar },
upstreamData.map { it.remappedJar }.convertToFileProvider(target.layout, target.providers),
upstreamData.map { it.decompiledJar },
patcher.mcDevSourceDir.path,
upstreamData.map { it.libFile },