Access transformers are no longer in a hardcoded location
This commit is contained in:
parent
de70d29ca6
commit
794baefc7a
|
|
@ -6,10 +6,6 @@ plugins {
|
|||
neoForge {
|
||||
neoFormVersion = neo_form_version
|
||||
// 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')
|
||||
if (at.exists()) {
|
||||
accessTransformers.add(at.absolutePath)
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@ plugins {
|
|||
neoForge {
|
||||
version = neoforge_version
|
||||
// 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')
|
||||
if (at.exists()) {
|
||||
accessTransformers.add(at.absolutePath)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user