Skip to content

Commit

Permalink
Don't mark tooltip dirty
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorbatron committed Jan 27, 2025
1 parent 5e3b7ac commit ed6af5e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager guiSyncManager)
.tooltip(t -> t.setAutoUpdate(false))
.onUpdateListener(itemSlot -> {
RichTooltip tooltip = itemSlot.tooltip();
tooltip.buildTooltip();
if (isSlotBlocked()) {
tooltip.buildTooltip();
tooltip.clearText();
} else if (tooltip.isEmpty()) {
tooltip.markDirty();
}
})
.overlay((context, x, y, width, height, widgetTheme) -> {
Expand Down

0 comments on commit ed6af5e

Please sign in to comment.