New property "include_mod" to make sure mods work alongside coremods

This commit is contained in:
Rongmario 2022-05-26 12:05:56 +01:00
parent dfaf6d5d34
commit c790bdef35
2 changed files with 4 additions and 0 deletions

View file

@ -103,6 +103,9 @@ jar {
def attribute_map = [:] def attribute_map = [:]
if (project.use_coremod.toBoolean()) { if (project.use_coremod.toBoolean()) {
attribute_map['FMLCorePlugin'] = project.coremod_plugin_class_name attribute_map['FMLCorePlugin'] = project.coremod_plugin_class_name
if (project.include_mod.toBoolean()) {
attribute_map['FMLCorePluginContainsFMLMod'] = true
}
} }
if (project.use_mixins.toBoolean()) { if (project.use_mixins.toBoolean()) {
attribute_map['TweakClass'] = 'org.spongepowered.asm.launch.MixinTweaker' attribute_map['TweakClass'] = 'org.spongepowered.asm.launch.MixinTweaker'

View file

@ -15,4 +15,5 @@ use_coremod = false
use_assetmover = false use_assetmover = false
# Coremod Arguments # Coremod Arguments
include_mod = true
coremod_plugin_class_name = coremod_plugin_class_name =