Skip to content

Commit

Permalink
Forge now runs correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed May 3, 2024
1 parent 22f28b1 commit f4f0a5d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Common/src/main/resources/terrablender.mixins.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"package": "terrablender.mixin",
"compatibilityLevel": "JAVA_21",
"compatibilityLevel": "JAVA_17",
"refmap": "${refmap_target}refmap.json",
"mixins": [
"MixinBiomeSource",
Expand Down
14 changes: 5 additions & 9 deletions Forge/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "net.minecraftforge.gradle" version "[6.0,6.2.)"
id "org.spongepowered.mixin" version "0.7-SNAPSHOT"
id "net.minecraftforge.gradle" version "[6.0.24,6.2.)"
id "org.spongepowered.mixin" version '0.7.+'
id "com.matthewprenger.cursegradle" version "1.4.0"
id "com.modrinth.minotaur" version "2.+"
}
Expand All @@ -10,6 +10,7 @@ base.archivesName.set("${mod_name}-forge")
minecraft {
mappings channel: 'official', version: minecraft_version
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
reobf = false

runs {
client {
Expand Down Expand Up @@ -41,12 +42,9 @@ dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
compileOnly project(":Common")
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
}

// Workaround for SpongePowered/MixinGradle#38
afterEvaluate {
tasks.configureReobfTaskForReobfJar.mustRunAfter(tasks.compileJava)
tasks.configureReobfTaskForReobfJarJar.mustRunAfter(tasks.compileJava)
// Hack fix for now, force jopt-simple to be exactly 5.0.4 because Mojang ships that version, but some transtive dependencies request 6.0+
implementation('net.sf.jopt-simple:jopt-simple:5.0.4') { version { strictly '5.0.4' } }
}

mixin {
Expand Down Expand Up @@ -77,8 +75,6 @@ processResources {
}
}

jar.finalizedBy('reobfJar')

curseforge {
apiKey = project.findProperty('curseApiKey') ?: 'unset'
project {
Expand Down
2 changes: 1 addition & 1 deletion Forge/src/main/resources/terrablender_forge.mixins.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"package": "terrablender.mixin",
"compatibilityLevel": "JAVA_21",
"compatibilityLevel": "JAVA_17",
"refmap": "terrablender.refmap.json",
"mixins": [
],
Expand Down

0 comments on commit f4f0a5d

Please sign in to comment.