From a6d67510db3adf0ce7ee2a974aba0d0f7f948ca2 Mon Sep 17 00:00:00 2001 From: Integer Limit <103940576+IntegerLimit@users.noreply.github.com> Date: Tue, 19 Mar 2024 17:25:59 +1100 Subject: [PATCH] Fix Occasional Crash --- .../com/nomiceu/nomilabs/groovy/GroovyScriptHandManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/nomiceu/nomilabs/groovy/GroovyScriptHandManager.java b/src/main/java/com/nomiceu/nomilabs/groovy/GroovyScriptHandManager.java index c5d508ac..3a78be83 100644 --- a/src/main/java/com/nomiceu/nomilabs/groovy/GroovyScriptHandManager.java +++ b/src/main/java/com/nomiceu/nomilabs/groovy/GroovyScriptHandManager.java @@ -21,7 +21,7 @@ public static void addToHand(GsHandEvent event) { event.messages.add(new TextComponentString("")); addToMessage(event, material.copy(1), false); - if (material.material.getMaterialComponents().isEmpty()) return; + if (material.material.getMaterialComponents() == null || material.material.getMaterialComponents().isEmpty()) return; event.messages.add(new TextComponentTranslation("nomilabs.command.gs_hand.material_components")); for (var component : material.material.getMaterialComponents()) { addToMessage(event, component, true);