diff options
-rw-r--r-- | src/main/kotlin/io/github/moulberry/notenoughupdates/miscgui/DynamicLightItemsEditor.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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 |