Skip to content

Commit

Permalink
added submergedInWater statement to if, to fix #22
Browse files Browse the repository at this point in the history
  • Loading branch information
legoraft authored Oct 16, 2023
1 parent fdfac3d commit 345404c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/java/com/armorhud/mixin/client/armorHudMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private void renderHud(float tickDelta, DrawContext context, CallbackInfo ci) {
}

// Moves armorhud up if player is underwater
if (client.player.getAir() < client.player.getMaxAir() || client.player.isSwimming()) {
if (client.player.getAir() < client.player.getMaxAir() || client.player.isSubmergedInWater() && !client.player.isCreative()) {
i -= 10;
}

Expand Down Expand Up @@ -85,4 +85,4 @@ private void renderHud(float tickDelta, DrawContext context, CallbackInfo ci) {

}

}
}

0 comments on commit 345404c

Please sign in to comment.