From 0f78d8bb772092af1d2bd9d4d38e53eba6d0fa41 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Tue, 16 Apr 2024 20:58:37 +1000 Subject: Fix crash with null item with dynamic lights (#1101) --- .../moulberry/notenoughupdates/miscgui/DynamicLightItemsEditor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/miscgui/DynamicLightItemsEditor.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/miscgui/DynamicLightItemsEditor.kt index 6e6ec662..268bd875 100644 --- a/src/main/kotlin/io/github/moulberry/notenoughupdates/miscgui/DynamicLightItemsEditor.kt +++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/miscgui/DynamicLightItemsEditor.kt @@ -267,7 +267,7 @@ class DynamicLightItemsEditor() : GuiScreen() { .resolveInternalName() if (internalName == null) { // If resolving internal name failed, the item may be a minecraft item - internalName = itemStack.item.registryName + internalName = itemStack.item?.registryName if (internalName == null) { // Check if minecraft searching also fails // Leave error handling for caller since this method is also called in MixinOFDynamicLights which -- cgit