DCEVM support

This commit is contained in:
Relentless 2022-09-02 21:05:45 +02:00
parent 469178eadc
commit 9952877bca
No known key found for this signature in database
GPG key ID: 759D97B8C6F25265
2 changed files with 4 additions and 0 deletions

View file

@ -58,12 +58,14 @@ loom {
configName = "Fabric Client" configName = "Fabric Client"
ideConfigGenerated(true) ideConfigGenerated(true)
runDir("run") runDir("run")
vmArgs("-XX:+AllowEnhancedClassRedefinition -XX:+IgnoreUnrecognizedVMOptions")
} }
named("server") { named("server") {
server() server()
configName = "Fabric Server" configName = "Fabric Server"
ideConfigGenerated(true) ideConfigGenerated(true)
runDir("run") runDir("run")
vmArgs("-XX:+AllowEnhancedClassRedefinition -XX:+IgnoreUnrecognizedVMOptions")
} }
} }

View file

@ -33,6 +33,7 @@ minecraft {
taskName("Client") taskName("Client")
property("mixin.env.remapRefMap", "true") property("mixin.env.remapRefMap", "true")
property("mixin.env.refMapRemappingFile", "${projectDir}/build/createSrgToMcp/output.srg") property("mixin.env.refMapRemappingFile", "${projectDir}/build/createSrgToMcp/output.srg")
jvmArg("-XX:+AllowEnhancedClassRedefinition -XX:+IgnoreUnrecognizedVMOptions")
mods { mods {
create(modId) { create(modId) {
source(sourceSets.main.get()) source(sourceSets.main.get())
@ -47,6 +48,7 @@ minecraft {
taskName("Server") taskName("Server")
property("mixin.env.remapRefMap", "true") property("mixin.env.remapRefMap", "true")
property("mixin.env.refMapRemappingFile", "${projectDir}/build/createSrgToMcp/output.srg") property("mixin.env.refMapRemappingFile", "${projectDir}/build/createSrgToMcp/output.srg")
jvmArg("-XX:+AllowEnhancedClassRedefinition -XX:+IgnoreUnrecognizedVMOptions")
mods { mods {
create(modId) { create(modId) {
source(sourceSets.main.get()) source(sourceSets.main.get())