Skip to content

Commit aa1729a

Browse files
committed
fix: correct Stonecutter API usage and BetterHUDGUI preprocessor syntax
- build.gradle: use project.minecraft_version instead of the non-existent stonecutter.current.version property - build.gradle: remove stonecutter.chiseled call that used incorrect task API and caused a configuration-phase crash - BetterHUDGUI.java: replace invalid //?> with proper //? if block for the class declaration implements clause https://claude.ai/code/session_01PHDS24JTjD32guufn2q2sj
1 parent 640eb9a commit aa1729a

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
id 'maven-publish'
55
}
66

7-
def mc = stonecutter.current.version
7+
def mc = project.minecraft_version
88
def isOldMC = mc.startsWith("1.") // 1.21.x → Yarn mappings, Java 21
99
def is121 = mc == "1.21" // Only 1.21 needs lifecycle-events as explicit module
1010

@@ -106,9 +106,6 @@ jar {
106106
}
107107
}
108108

109-
// Registers a root-level task that builds all versions sequentially
110-
stonecutter.chiseled tasks.register("chiseledBuild", stonecutter.task(tasks.named("build")))
111-
112109
publishing {
113110
publications {
114111
create("mavenJava", MavenPublication) {

src/main/java/dsns/betterhud/BetterHUDGUI.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
import net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback;*/
1818
//?}
1919

20-
public class BetterHUDGUI
21-
//? if mc >= "26.1"
22-
implements ClientTickEvents.StartTick {
23-
//?> /*implements HudRenderCallback, ClientTickEvents.StartTick {*/
20+
//? if mc >= "26.1" {
21+
public class BetterHUDGUI implements ClientTickEvents.StartTick {
22+
//?} else {
23+
/*public class BetterHUDGUI implements HudRenderCallback, ClientTickEvents.StartTick {*/
24+
//?}
2425

2526
public static int verticalPadding = 4;
2627
public static int horizontalPadding = 4;

0 commit comments

Comments
 (0)