Fixed AT not being declared in manifest + fix build.gradle tab/space mix
This commit is contained in:
parent
58795fb003
commit
d282ef9b6b
2 changed files with 51 additions and 42 deletions
|
@ -96,7 +96,10 @@ processResources {
|
|||
from(sourceSets.main.resources.srcDirs) {
|
||||
exclude 'mcmod.info'
|
||||
}
|
||||
|
||||
if (project.use_access_transformer.toBoolean()) {
|
||||
rename '(.+_at.cfg)', 'META-INF/$1' // Access Transformers
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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 =
|
Loading…
Reference in a new issue