Skip to content

Commit

Permalink
#53 Bonus: add mixin agent to fabric client
Browse files Browse the repository at this point in the history
  • Loading branch information
der-fruhling committed May 22, 2024
1 parent d66f816 commit 6ceccd0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,18 @@ subprojects {
apply plugin: "dev.architectury.loom"
apply plugin: "maven-publish"

configurations {
mixinDependency
}

loom {
silentMojangMappingsLicense()
}

dependencies {
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
mappings loom.officialMojangMappings()
mixinDependency("net.fabricmc:sponge-mixin:0.12.5+mixin.0.8.5") { transitive = false }
}

publishing {
Expand Down
15 changes: 15 additions & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ architectury {
fabric()
}

loom {
runs {
client {
client()
ideConfigGenerated = true

configurations.mixinDependency.files.each {
vmArg "-javaagent:$it.absolutePath".toString()
}

source sourceSets.main
}
}
}

configurations {
common
shadowCommon // Don't use shadow from the shadow plugin since it *excludes* files.
Expand Down

0 comments on commit 6ceccd0

Please sign in to comment.