Skip to content

Commit

Permalink
added rules for double hotbar config
Browse files Browse the repository at this point in the history
  • Loading branch information
legoraft authored May 13, 2023
1 parent 5987fea commit 4b95ec6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/client/java/com/armorhud/mixin/client/armorHudMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ private void renderHud(MatrixStack matrices, float tickDelta, CallbackInfo ci) {
assert client.player != null;

int h = 68;
int i = this.scaledHeight - 55;
int i;

if (config.DOUBLE_HOTBAR) {
i = this.scaledHeight - 76;
} else {
i = this.scaledHeight - 55;
}

// Moves armorhud up if player is underwater
if (client.player.getAir() < client.player.getMaxAir() || client.player.isSwimming()) {
Expand Down Expand Up @@ -73,4 +79,4 @@ private void renderHud(MatrixStack matrices, float tickDelta, CallbackInfo ci) {

}

}
}

0 comments on commit 4b95ec6

Please sign in to comment.