Add AT detection from the GTNH buildscript
This commit is contained in:
parent
6b9432c49b
commit
0ca81e47aa
1 changed files with 10 additions and 0 deletions
10
build.gradle
10
build.gradle
|
@ -112,6 +112,16 @@ if (project.use_mixins.toBoolean()) {
|
|||
}
|
||||
}
|
||||
|
||||
if (project.use_access_transformer.toBoolean()) {
|
||||
for (File at : sourceSets.getByName("main").resources.files) {
|
||||
if (at.name.toLowerCase().endsWith("_at.cfg")) {
|
||||
atsFound = true
|
||||
tasks.deobfuscateMergedJarToSrg.accessTransformerFiles.from(at)
|
||||
tasks.srgifyBinpatchedJar.accessTransformerFiles.from(at)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
processResources {
|
||||
// this will ensure that this task is redone when the versions change.
|
||||
inputs.property 'version', project.version
|
||||
|
|
Loading…
Reference in a new issue