Skip to content

Commit

Permalink
Do not show infinite potion effects in PotionHUD
Browse files Browse the repository at this point in the history
  • Loading branch information
Toshimichi0915 committed Aug 22, 2024
1 parent 0d9e038 commit d743d47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ minecraft_version=1.21.1
yarn_mappings=1.21.1+build.3
loader_version=0.16.2
# Mod Properties
mod_version=1.8.5
mod_version=1.8.6
maven_group=net.toshimichi
archives_base_name=thymine
# Dependencies
Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/toshimichi/thymine/PotionHud.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public void render(DrawContext context) {
float y = ThymineMod.getOptions().potionHudOptions.getY();
int index = 0;
for (StatusEffectInstance effect : client.player.getStatusEffects()) {
if (effect.isInfinite()) continue;

int seconds = effect.getDuration() / 20;
int minutes = seconds / 60;
Expand Down

0 comments on commit d743d47

Please sign in to comment.