Skip to content

Commit

Permalink
chore: setup use of JBR for better hotswap
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Apr 26, 2023
1 parent ea2252c commit 5e61fe2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ minecraft {
property 'mixin.env.remapRefMap', 'true'
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"

// enable using JBR to hotswap MOAR
// also ignore the option if someone isnt using JBR
jvmArgs '-XX:+AllowEnhancedClassRedefinition', '-XX:+IgnoreUnrecognizedVMOptions'

mods {
occultism {
source sourceSets.main
Expand All @@ -64,6 +68,10 @@ minecraft {
//Workaround for patchouli mixin crash
property 'mixin.env.disableRefMap', 'true'

// enable using JBR to hotswap MOAR
// also ignore the option if someone isnt using JBR
jvmArgs '-XX:+AllowEnhancedClassRedefinition', '-XX:+IgnoreUnrecognizedVMOptions'

mods {
occultism {
source sourceSets.main
Expand Down

0 comments on commit 5e61fe2

Please sign in to comment.