Add mixins/coremod to client/server run args automagically

This commit is contained in:
Rongmario 2022-01-26 12:34:40 +00:00
parent c45e35d42a
commit 6ad9a77ebc

View file

@ -1,6 +1,5 @@
buildscript { buildscript {
repositories { repositories {
jcenter()
maven { maven {
url = 'https://maven.cleanroommc.com' url = 'https://maven.cleanroommc.com'
} }
@ -41,6 +40,17 @@ minecraft {
version = '1.12.2-14.23.5.2847' version = '1.12.2-14.23.5.2847'
runDir = 'run' runDir = 'run'
mappings = 'stable_39' mappings = 'stable_39'
def args = []
if (project.use_coremod) {
args << '-Dfml.coreMods.load=' + coremod_plugin_class_name
}
if (project.use_mixins) {
args << '-Dmixin.hotSwap=true'
args << '-Dmixin.checks.interfaces=true'
args << '-Dmixin.debug.export=true'
}
clientJvmArgs.addAll(args)
serverJvmArgs.addAll(args)
} }
repositories { repositories {