Skip to content

Commit

Permalink
Use vineflower over fernflower
Browse files Browse the repository at this point in the history
  • Loading branch information
nobaboy committed Oct 3, 2024
1 parent 22a0d68 commit 8910e6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,19 @@ dependencies {

modImplementation("net.fabricmc.fabric-api:fabric-api:${deps["fabric_api"]}+${mcVersion}")
modImplementation("net.fabricmc:fabric-language-kotlin:${deps["kotlin"]}")
vineflowerDecompilerClasspath("org.vineflower:vineflower:1.10.1")

// If you don't want DevAuth remove this line
modRuntimeOnly("me.djtheredstoner:DevAuth-fabric:${deps["devauth"]}")
}

loom {
decompilers {
get("vineflower").apply { // Adds names to lambdas - useful for mixins
options.put("mark-corresponding-synthetics", "1")
}
}

runConfigs.all {
ideConfigGenerated(stonecutter.current.isActive)
runDir = "../../run"
Expand Down
4 changes: 3 additions & 1 deletion stonecutter.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
plugins {
id("dev.kikugie.stonecutter")
id("fabric-loom") version "1.7-SNAPSHOT" apply false
//id("dev.kikugie.j52j") version "1.0" apply false // Enables asset processing by writing json5 files
//id("me.modmuss50.mod-publish-plugin") version "0.5.+" apply false // Publishes builds to hosting websites
}
stonecutter active "1.21" /* [SC] DO NOT EDIT */

Expand All @@ -13,4 +15,4 @@ stonecutter registerChiseled tasks.register("chiseledBuild", stonecutter.chisele
stonecutter configureEach {
/* https://stonecutter.kikugie.dev/ */
dependency("fapi", project.property("deps.fabric_api").toString())
}
}

0 comments on commit 8910e6e

Please sign in to comment.