Fixed AT not being declared in manifest + fix build.gradle tab/space mix

This commit is contained in:
Rongmario 2022-09-05 15:04:02 +01:00
parent 58795fb003
commit d282ef9b6b
2 changed files with 51 additions and 42 deletions

View file

@ -96,8 +96,11 @@ processResources {
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
if (project.use_access_transformer.toBoolean()) {
rename '(.+_at.cfg)', 'META-INF/$1' // Access Transformers
}
}
jar {
manifest {
@ -111,6 +114,9 @@ jar {
}
if (project.use_mixins.toBoolean()) {
attribute_map['TweakClass'] = 'org.spongepowered.asm.launch.MixinTweaker'
}
if (project.use_access_transformer.toBoolean()) {
attribute_map['FMLAT'] = project.archives_base_name + '_at.cfg'
}
attributes(attribute_map)
}

View file

@ -14,6 +14,9 @@ use_mixins = false
use_coremod = false
use_assetmover = false
# Access Transformer files should be in the root of `resources` folder and with the filename formatted as: `{archives_base_name}_at.cfg`
use_access_transformer = false
# Coremod Arguments
include_mod = true
coremod_plugin_class_name =