diff options
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java | 1 |
1 files changed, 1 insertions, 0 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 08340f23..6194b2dd 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java @@ -837,6 +837,7 @@ public class GuiProfileViewer extends GuiScreen { } } + previousProfileSearches.removeIf(Objects::isNull); for (int i = 0; i < previousProfileSearches.size(); i++) { if (mouseX > x && mouseX < x + 28) { if (mouseY > y + 28 * (i + 1) && mouseY < y + 28 * (i + 2)) { |