diff options
| -rw-r--r-- | build.gradle.kts | 6 | ||||
| -rw-r--r-- | flake.lock | 6 | ||||
| -rw-r--r-- | flake.nix | 2 | ||||
| -rw-r--r-- | gradle/wrapper/gradle-wrapper.jar | bin | 43462 -> 43453 bytes | |||
| -rw-r--r-- | gradle/wrapper/gradle-wrapper.properties | 2 | ||||
| -rw-r--r-- | gradlew.bat | 20 | ||||
| -rw-r--r-- | src/main/java/net/inyourwalls/customlevelcolour/mixin/InGameHudMixin.java | 6 |
7 files changed, 21 insertions, 21 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index b2c6c81..8468adf 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,9 +1,9 @@ plugins { java - id("fabric-loom") version "1.5-SNAPSHOT" + id("fabric-loom") version "1.6-SNAPSHOT" } -val minecraftVersion = "1.20.2" +val minecraftVersion = "1.20.5" version = "1.0.0+$minecraftVersion" group = "net.inyourwalls" @@ -12,7 +12,7 @@ repositories { } dependencies { - val yarnBuild = "4" + val yarnBuild = "1" val fabricLoaderVersion = "0.14.22" minecraft("com.mojang:minecraft:$minecraftVersion") @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1708296515, - "narHash": "sha256-FyF489fYNAUy7b6dkYV6rGPyzp+4tThhr80KNAaF/yY=", + "lastModified": 1713714899, + "narHash": "sha256-+z/XjO3QJs5rLE5UOf015gdVauVRQd2vZtsFkaXBq2Y=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "b98a4e1746acceb92c509bc496ef3d0e5ad8d4aa", + "rev": "6143fc5eeb9c4f00163267708e26191d1e918932", "type": "github" }, "original": { @@ -7,8 +7,8 @@ devShells.${system}.default = pkgs.mkShell { nativeBuildInputs = with pkgs; [ gradle + jdk21 jdt-language-server - openjdk17 ]; }; }; diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar Binary files differindex d64cd49..e644113 100644 --- a/gradle/wrapper/gradle-wrapper.jar +++ b/gradle/wrapper/gradle-wrapper.jar diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 1af9e09..b82aa23 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/gradlew.bat b/gradlew.bat index 6689b85..7101f8e 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -43,11 +43,11 @@ set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
+echo. 1>&2
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
goto fail
@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
+echo. 1>&2
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
+echo. 1>&2
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
+echo location of your Java installation. 1>&2
goto fail
diff --git a/src/main/java/net/inyourwalls/customlevelcolour/mixin/InGameHudMixin.java b/src/main/java/net/inyourwalls/customlevelcolour/mixin/InGameHudMixin.java index 07e5a82..328f319 100644 --- a/src/main/java/net/inyourwalls/customlevelcolour/mixin/InGameHudMixin.java +++ b/src/main/java/net/inyourwalls/customlevelcolour/mixin/InGameHudMixin.java @@ -14,7 +14,7 @@ public class InGameHudMixin { value = "INVOKE", target = "Lnet/minecraft/client/gui/DrawContext;drawText(Lnet/minecraft/client/font/TextRenderer;Ljava/lang/String;IIIZ)I" ), - method = "renderExperienceBar", + method = "renderExperienceLevel", index = 4 ) private int overwriteOutlineColour(int oldColour) { @@ -27,10 +27,10 @@ public class InGameHudMixin { target = "Lnet/minecraft/client/gui/DrawContext;drawText(Lnet/minecraft/client/font/TextRenderer;Ljava/lang/String;IIIZ)I", ordinal = 4 ), - method = "renderExperienceBar", + method = "renderExperienceLevel", index = 4 ) - private int overwriteExperienceBarColour(int oldColour) { + private int overwriteTextColour(int oldColour) { return CustomLevelColour.getConfig().textColour; } } |
