diff options
Diffstat (limited to 'src/main/java/io')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java | 8 |
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)); + } } } } |