Skip to content

Commit

Permalink
Fix double tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
ferriarnus committed Feb 18, 2024
1 parent 29dab65 commit 58e9125
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ public void render(GuiGraphics guiGraphics, int pMouseX, int pMouseY, float pPar
renderBackground(guiGraphics, pMouseX, pMouseY, pPartialTicks);
super.render(guiGraphics, pMouseX, pMouseY, pPartialTicks);
this.renderTooltip(guiGraphics, pMouseX, pMouseY);
for (LateTooltipData tooltip : tooltips) {
tooltip.getGuiGraphics().renderTooltip(this.font, tooltip.getText(), Optional.empty(), tooltip.getMouseX(), tooltip.getMouseY());
}
//TODO: NEO-PORT: Remove all LateTooltipData, vanilla has deferred tooltips now
// for (LateTooltipData tooltip : tooltips) {
// tooltip.getGuiGraphics().renderTooltip(this.font, tooltip.getText(), Optional.empty(), tooltip.getMouseX(), tooltip.getMouseY());
// }
}

@Override
Expand Down

0 comments on commit 58e9125

Please sign in to comment.