Access transformers are no longer in a hardcoded location

This commit is contained in:
Jared 2024-06-26 02:36:00 -06:00
parent de70d29ca6
commit 794baefc7a
2 changed files with 0 additions and 6 deletions

View File

@ -6,10 +6,6 @@ plugins {
neoForge { neoForge {
neoFormVersion = neo_form_version neoFormVersion = neo_form_version
// Automatically enable AccessTransformers if the file exists // Automatically enable AccessTransformers if the file exists
// While this location can be changed, it is recommended for
// common and neoforge to share an accesstransformer file
// and this location is hardcoded in FML
// https://github.com/neoforged/FancyModLoader/blob/a952595eaaddd571fbc53f43847680b00894e0c1/loader/src/main/java/net/neoforged/fml/loading/moddiscovery/ModFile.java#L118
def at = file('src/main/resources/META-INF/accesstransformer.cfg') def at = file('src/main/resources/META-INF/accesstransformer.cfg')
if (at.exists()) { if (at.exists()) {
accessTransformers.add(at.absolutePath) accessTransformers.add(at.absolutePath)

View File

@ -6,8 +6,6 @@ plugins {
neoForge { neoForge {
version = neoforge_version version = neoforge_version
// Automatically enable neoforge AccessTransformers if the file exists // Automatically enable neoforge AccessTransformers if the file exists
// This location is hardcoded in FML and can not be changed.
// https://github.com/neoforged/FancyModLoader/blob/a952595eaaddd571fbc53f43847680b00894e0c1/loader/src/main/java/net/neoforged/fml/loading/moddiscovery/ModFile.java#L118
def at = project(':common').file('src/main/resources/META-INF/accesstransformer.cfg') def at = project(':common').file('src/main/resources/META-INF/accesstransformer.cfg')
if (at.exists()) { if (at.exists()) {
accessTransformers.add(at.absolutePath) accessTransformers.add(at.absolutePath)