aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2022-09-23 01:56:53 +1000
committerGitHub <noreply@github.com>2022-09-22 17:56:53 +0200
commit5b3d6154a53599d37aa9c98e89b942f70fbce2cb (patch)
tree0e69608186bfc1b3956c304b7f169b0e72980222 /src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
parent6520c42697fe929316e93e42e8b070e6241cff0e (diff)
downloadnotenoughupdates-5b3d6154a53599d37aa9c98e89b942f70fbce2cb.tar.gz
notenoughupdates-5b3d6154a53599d37aa9c98e89b942f70fbce2cb.tar.bz2
notenoughupdates-5b3d6154a53599d37aa9c98e89b942f70fbce2cb.zip
fix pet middle clicking (#287)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
index 308bd63e..dbff2be2 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
@@ -753,7 +753,9 @@ public class NEUOverlay extends Gui {
if (slot != null) {
ItemStack hover = slot.getStack();
if (hover != null) {
- textField.setText("id:" + manager.getInternalNameForItem(hover));
+ if (manager.getInternalNameForItem(hover) != null) {
+ textField.setText("id:" + manager.getInternalNameForItem(hover));
+ }
itemPaneOpen = true;
updateSearch();
}