From 0ca81e47aa355908d9815c6ce1dfcc172be7a5a3 Mon Sep 17 00:00:00 2001 From: Raven Szewczyk Date: Mon, 24 Apr 2023 11:28:24 +0100 Subject: [PATCH] Add AT detection from the GTNH buildscript --- build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) 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