Skip to content

Commit

Permalink
Fix beta hud injections
Browse files Browse the repository at this point in the history
Closes #675
  • Loading branch information
FlorianMichael committed Jan 4, 2025
1 parent 57712dc commit e3b923e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ private static void moveArmorPositions(Args args, @Local(ordinal = 3, argsOnly =
final int armorWidth = 10 * viaFabricPlusVisuals$ARMOR_ICON_WIDTH;
final int offset = n * viaFabricPlusVisuals$ARMOR_ICON_WIDTH;

args.set(1, client.getWindow().getScaledWidth() - x - armorWidth + offset - 1);
args.set(2, (int) args.get(2) + client.textRenderer.fontHeight + 1);
args.set(2, client.getWindow().getScaledWidth() - x - armorWidth + offset - 1);
args.set(3, (int) args.get(3) + client.textRenderer.fontHeight + 1);
}

@ModifyArg(method = "renderAirBubbles", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/DrawContext;drawGuiTexture(Ljava/util/function/Function;Lnet/minecraft/util/Identifier;IIII)V"),
Expand Down

0 comments on commit e3b923e

Please sign in to comment.