diff --git a/Fabric/build.gradle.kts b/Fabric/build.gradle.kts index 212a078..9b2202e 100644 --- a/Fabric/build.gradle.kts +++ b/Fabric/build.gradle.kts @@ -58,12 +58,14 @@ loom { configName = "Fabric Client" ideConfigGenerated(true) runDir("run") + vmArgs("-XX:+AllowEnhancedClassRedefinition -XX:+IgnoreUnrecognizedVMOptions") } named("server") { server() configName = "Fabric Server" ideConfigGenerated(true) runDir("run") + vmArgs("-XX:+AllowEnhancedClassRedefinition -XX:+IgnoreUnrecognizedVMOptions") } } diff --git a/Forge/build.gradle.kts b/Forge/build.gradle.kts index caf22a0..2146ec5 100644 --- a/Forge/build.gradle.kts +++ b/Forge/build.gradle.kts @@ -33,6 +33,7 @@ minecraft { taskName("Client") property("mixin.env.remapRefMap", "true") property("mixin.env.refMapRemappingFile", "${projectDir}/build/createSrgToMcp/output.srg") + jvmArg("-XX:+AllowEnhancedClassRedefinition -XX:+IgnoreUnrecognizedVMOptions") mods { create(modId) { source(sourceSets.main.get()) @@ -47,6 +48,7 @@ minecraft { taskName("Server") property("mixin.env.remapRefMap", "true") property("mixin.env.refMapRemappingFile", "${projectDir}/build/createSrgToMcp/output.srg") + jvmArg("-XX:+AllowEnhancedClassRedefinition -XX:+IgnoreUnrecognizedVMOptions") mods { create(modId) { source(sourceSets.main.get())