Skip to content

Commit

Permalink
Fix incorrect tooltip offsets, Closes #1009
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Oct 26, 2023
1 parent 0802ff4 commit 7c67ac2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ protected void drawBarTooltipTank(GuiGraphics guiGraphics, Component name, Fluid
List<Component> lines = Lists.newArrayList();
lines.add(name);
lines.add(DamageIndicatedItemComponent.getInfo(fluidStack, amount, capacity));
drawTooltip(lines, guiGraphics.pose(), x, y);
guiGraphics.pose().pushPose();
guiGraphics.pose().translate(this.leftPos, this.topPos, 0);
drawTooltip(lines, guiGraphics.pose(), x - this.leftPos, y - this.topPos);
guiGraphics.pose().popPose();
}

}

0 comments on commit 7c67ac2

Please sign in to comment.