Update to 1.21.5

This commit is contained in:
2025-04-16 20:29:34 +02:00
parent d0465eeed6
commit b5eef469d7
4 changed files with 7 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.8-SNAPSHOT'
id 'fabric-loom' version '1.10-SNAPSHOT'
id 'maven-publish'
}

View File

@@ -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

View File

@@ -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

View File

@@ -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();
}
}