Skip to content

Commit

Permalink
Fix NPE during configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Nov 26, 2024
1 parent 403f016 commit 2637d6e
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -482,16 +482,12 @@ open class MinecraftProvider(project: Project, sourceSet: SourceSet) : Minecraft
archiveClassifier.set(if(!oldClassifier.isNullOrEmpty()) "$oldClassifier-dev" else "dev")
}

var remapTask: JarInterface<AbstractRemapJarTask>? = null

remappingFunction(inputTask) {
remapTask = this
group = "unimined"
description = "Remaps $inputTask's output jar"
asJar.archiveClassifier.set(oldClassifier)
project.tasks.getByName("build").dependsOn(this)
}

project.tasks.getByName("build").dependsOn(remapTask)
}

fun applyRunConfigs() {
Expand Down Expand Up @@ -874,4 +870,4 @@ open class MinecraftProvider(project: Project, sourceSet: SourceSet) : Minecraft

return sourceSets
}
}
}

0 comments on commit 2637d6e

Please sign in to comment.