diff options
author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2022-10-15 12:48:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-15 14:48:00 +0200 |
commit | df02addf3404f07f245d6e6da8ce3ee8d72bd235 (patch) | |
tree | 525c4086b4b8cb9ee2a329dee7a0915ceaaa788a /src/main/java/io | |
parent | 42db45e304100b0cb523a77ba0a4eeabb8643f40 (diff) | |
download | NotEnoughUpdates-df02addf3404f07f245d6e6da8ce3ee8d72bd235.tar.gz NotEnoughUpdates-df02addf3404f07f245d6e6da8ce3ee8d72bd235.tar.bz2 NotEnoughUpdates-df02addf3404f07f245d6e6da8ce3ee8d72bd235.zip |
Fix pv crash when in f7 (#366)
Fix pv crash when your in f7???
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)); + } } } } |