aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthias-luger <58751503+matthias-luger@users.noreply.github.com>2023-02-08 12:13:22 +0100
committerGitHub <noreply@github.com>2023-02-08 12:13:22 +0100
commite43d5685fdf0d436d5836d06c5d3f15da674e7df (patch)
tree799fcdbe76dfc603c9dca57093aa07e086130af7
parent13bf5a9efeba93c6da82e2bb40d3f01372f52326 (diff)
downloadCOFL-e43d5685fdf0d436d5836d06c5d3f15da674e7df.tar.gz
COFL-e43d5685fdf0d436d5836d06c5d3f15da674e7df.tar.bz2
COFL-e43d5685fdf0d436d5836d06c5d3f15da674e7df.zip
prevent nullpointer exception from description handler (#90)
-rw-r--r--src/main/java/de/torui/coflsky/handlers/EventRegistry.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/de/torui/coflsky/handlers/EventRegistry.java b/src/main/java/de/torui/coflsky/handlers/EventRegistry.java
index bd5cd25..354dfb9 100644
--- a/src/main/java/de/torui/coflsky/handlers/EventRegistry.java
+++ b/src/main/java/de/torui/coflsky/handlers/EventRegistry.java
@@ -236,6 +236,7 @@ public class EventRegistry {
@SubscribeEvent(priority = EventPriority.HIGHEST)
public void onItemTooltipEvent(ItemTooltipEvent event) {
if (!config.extendedtooltips) return;
+ if(descriptionHandler == null) return;
descriptionHandler.setTooltips(event);
}
}