aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
index 094f3892..98f186cb 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
@@ -767,9 +767,13 @@ public class GuiProfileViewer extends GuiScreen {
if (mouseX > x && mouseX < x + 28) {
if (mouseY > y && mouseY < y + 32) {
- tooltipToDisplay = Collections.singletonList(iPage.stack
+ if (!iPage.stack
.getTooltip(Minecraft.getMinecraft().thePlayer, false)
- .get(0));
+ .isEmpty()) {
+ tooltipToDisplay = Collections.singletonList(iPage.stack
+ .getTooltip(Minecraft.getMinecraft().thePlayer, false)
+ .get(0));
+ }
}
}
}