Add mixins/coremod to client/server run args automagically
This commit is contained in:
parent
c45e35d42a
commit
6ad9a77ebc
1 changed files with 11 additions and 1 deletions
12
build.gradle
12
build.gradle
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue