mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-20 04:09:43 +00:00
Combine FMLCorePluginContainsFMLMod and ForceLoadAsMod
This commit is contained in:
1 parent
36c88e2055
commit
c4b1866d72
2 files changed
+11
-7
No files matched your search
+8
-4
@@ -151,7 +151,9 @@ task generateAssets {
|
||||
|
||||
shadowJar {
|
||||
def manifestAttributes = [:]
|
||||
manifestAttributes += ["FMLCorePluginContainsFMLMod" : true]
|
||||
if(containsMixinsAndOrCoreModOnly.toBoolean() == false) {
|
||||
manifestAttributes += ["FMLCorePluginContainsFMLMod": true]
|
||||
}
|
||||
|
||||
if(accessTransformersFile.isEmpty() == false) {
|
||||
manifestAttributes += ["FMLAT" : accessTransformersFile.toString()]
|
||||
@@ -163,7 +165,7 @@ shadowJar {
|
||||
manifestAttributes += [
|
||||
"TweakClass" : "org.spongepowered.asm.launch.MixinTweaker",
|
||||
"MixinConfigs" : mixinConfigJson,
|
||||
"ForceLoadAsMod" : loadNormalModAfterApplingMixins.toBoolean()
|
||||
"ForceLoadAsMod" : containsMixinsAndOrCoreModOnly.toBoolean() == false
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -178,7 +180,9 @@ shadowJar {
|
||||
|
||||
jar {
|
||||
def manifestAttributes = [:]
|
||||
manifestAttributes += ["FMLCorePluginContainsFMLMod" : true]
|
||||
if(containsMixinsAndOrCoreModOnly.toBoolean() == false) {
|
||||
manifestAttributes += ["FMLCorePluginContainsFMLMod": true]
|
||||
}
|
||||
|
||||
if(accessTransformersFile.isEmpty() == false) {
|
||||
manifestAttributes += ["FMLAT" : accessTransformersFile.toString()]
|
||||
@@ -190,7 +194,7 @@ jar {
|
||||
manifestAttributes += [
|
||||
"TweakClass" : "org.spongepowered.asm.launch.MixinTweaker",
|
||||
"MixinConfigs" : mixinConfigJson,
|
||||
"ForceLoadAsMod" : loadNormalModAfterApplingMixins.toBoolean()
|
||||
"ForceLoadAsMod" : containsMixinsAndOrCoreModOnly.toBoolean() == false
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -38,9 +38,9 @@ usesMixins = true
|
||||
mixinPlugin = mixinplugin.MixinPlugin
|
||||
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
|
||||
mixinsPackage = mixins
|
||||
# If your project contains a mod next to a mixin you want this to be true. Only if you provide a lone collections
|
||||
# of mixins you set this parameter to false. Is ignored when usesMixins = false.
|
||||
loadNormalModAfterApplingMixins = true
|
||||
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod ( = some class
|
||||
# that is annotated with @Mod) you want this to be true. When in doubt: leave it on false!
|
||||
containsMixinsAndOrCoreModOnly = false
|
||||
|
||||
# If enabled, you may use 'shadowImplementation' for dependencies. They will be integrated in your jar. It is your
|
||||
# responsibility check the licence and request permission for distribution, if required.
|
||||
|
||||
Reference in new issue
Block a user