diff --git a/build.gradle b/build.gradle index cc8b680..923777a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'fabric-loom' version '1.8-SNAPSHOT' + id 'fabric-loom' version '1.10-SNAPSHOT' id 'maven-publish' } diff --git a/gradle.properties b/gradle.properties index 004cfdd..ebaefd6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,13 +2,13 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://modmuss50.me/fabric.html -minecraft_version=1.21.4 -yarn_mappings=1.21.4+build.1 -loader_version=0.16.9 +minecraft_version=1.21.5 +yarn_mappings=1.21.5+build.1 +loader_version=0.16.13 # Mod Properties -mod_version=1.1.3 +mod_version=1.1.4 maven_group=systems.brn archives_base_name=hudbars # Dependencies # check this on https://modmuss50.me/fabric.html -fabric_version=0.110.5+1.21.4 +fabric_version=0.120.0+1.21.5 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 9355b41..cea7a79 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.10-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/src/main/java/systems/brn/hudbars/mixin/InGameHudMixin.java b/src/main/java/systems/brn/hudbars/mixin/InGameHudMixin.java index 96dfcd7..fa35ae6 100644 --- a/src/main/java/systems/brn/hudbars/mixin/InGameHudMixin.java +++ b/src/main/java/systems/brn/hudbars/mixin/InGameHudMixin.java @@ -205,7 +205,6 @@ public class InGameHudMixin { // Use the drawBar method to render the armor bar drawBar(context, x, posY, barWidth, barHeight, armorPercentage, color, 0xFF000000, armorText, toughnessPercentage, generateSubBarColor(color)); - RenderSystem.disableBlend(); } } @@ -260,14 +259,10 @@ public class InGameHudMixin { int filledWidth = (int) (player.experienceProgress * barWidth); int y = screenHeight - 34; - RenderSystem.enableBlend(); - // Display experienceGotForThisLevel/experienceNeededForNextLevel String experienceText = "%d/%d (%d)".formatted(experienceGotForThisLevel, experienceNeededForNextLevel, experienceLevel); drawBar(context, x, y, barWidth, barHeight, (float) filledWidth / barWidth, 0xFFAAAA00, 0xFF000000, experienceText, 0, 0); - - RenderSystem.disableBlend(); } }