diff --git a/build.gradle b/build.gradle index 852ca62..a8ba4a0 100644 --- a/build.gradle +++ b/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