Skip to content

Commit ed6af5e

Browse files
committed
Don't mark tooltip dirty
1 parent 5e3b7ac commit ed6af5e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/gregtech/common/metatileentities/multi/multiblockpart/MetaTileEntityMachineHatch.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,9 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager guiSyncManager)
8686
.tooltip(t -> t.setAutoUpdate(false))
8787
.onUpdateListener(itemSlot -> {
8888
RichTooltip tooltip = itemSlot.tooltip();
89+
tooltip.buildTooltip();
8990
if (isSlotBlocked()) {
90-
tooltip.buildTooltip();
9191
tooltip.clearText();
92-
} else if (tooltip.isEmpty()) {
93-
tooltip.markDirty();
9492
}
9593
})
9694
.overlay((context, x, y, width, height, widgetTheme) -> {

0 commit comments

Comments
 (0)