diff options
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/java/com/aizistral/nochatreports/gui/AdvancedImageButton.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/com/aizistral/nochatreports/gui/AdvancedImageButton.java b/src/main/java/com/aizistral/nochatreports/gui/AdvancedImageButton.java index a2e80e1..81294c9 100644 --- a/src/main/java/com/aizistral/nochatreports/gui/AdvancedImageButton.java +++ b/src/main/java/com/aizistral/nochatreports/gui/AdvancedImageButton.java @@ -40,9 +40,10 @@ public class AdvancedImageButton extends ImageButton { public void renderButton(PoseStack poseStack, int mouseX, int mouseY, float delta) { super.renderButton(poseStack, mouseX, mouseY, delta); - if (this.tooltip instanceof AdvancedTooltip tooltip && tooltip.hasCustomRender()) { - tooltip.doCustomRender(this.parent, poseStack, mouseX, mouseY); - } + if (this.isHovered) + if (this.tooltip instanceof AdvancedTooltip tooltip && tooltip.hasCustomRender()) { + tooltip.doCustomRender(this.parent, poseStack, mouseX, mouseY); + } } } |
