Skip to content

Commit

Permalink
Updated to version 1.16.2
Browse files Browse the repository at this point in the history
There is a slight workaround with biomes until Fabric is fully updated to 1.16.2
  • Loading branch information
ZiiMs committed Aug 17, 2020
1 parent a4867aa commit a0485d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
13 changes: 7 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.16.1
yarn_mappings=1.16.1+build.21
loader_version=0.9.0+build.204
minecraft_version=1.16.2
yarn_mappings=1.16.2+build.19
loader_version=0.9.1+build.205

# Mod Properties
mod_version=1.0
Expand All @@ -15,6 +15,7 @@ archives_base_name=ZiiMHud

# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.16.2+build.385-1.16.1
mod_menu_version=1.14.5+build.30
cloth_config_version=4.6.0
fabric_version=0.18.0+build.397-1.16
mod_menu_version=1.14.6+build.31
cloth_config_version=4.7.0-unstable

6 changes: 4 additions & 2 deletions src/main/java/me/ziim/hud/client/DrawUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ private void drawRightStats() {
}
if (ZiiMHud.config().biome) {
String biome = "Biome: ";
String biome2 = this.player.getEntityWorld().getBiome(this.player.getBlockPos()).getName().getString();
String biome2 = this.player.getEntityWorld().getBiome(this.player.getBlockPos()).getCategory().getName();
biome2 = biome2.substring(0, 1).toUpperCase() + biome2.substring(1);
drawWithShadowconcat(stack, biome, scaleWidth - this.text.getWidth(biome2) - 2, scaleHeight - height, Color.white, stack, biome2, Color.gray, false);
scaleHeight -= height;
}
Expand Down Expand Up @@ -138,7 +139,8 @@ private void drawRightStats() {
}
if (ZiiMHud.config().biome) {
String biome = "Biome: ";
String biome2 = this.player.getEntityWorld().getBiome(this.player.getBlockPos()).getName().getString();
String biome2 = this.player.getEntityWorld().getBiome(this.player.getBlockPos()).getCategory().getName();
biome2 = biome2.substring(0, 1).toUpperCase() + biome2.substring(1);
drawWithShadowconcat(stack, biome, scaleWidth - this.text.getWidth(biome2) - 2, scaleHeight, Color.white, stack, biome2, Color.gray, false);
scaleHeight += height;
}
Expand Down

0 comments on commit a0485d3

Please sign in to comment.