From cc37fcac4a2d0e9ccc730f7887f81b86df090779 Mon Sep 17 00:00:00 2001 From: PseudoKnight Date: Fri, 3 Jan 2025 02:31:34 -0800 Subject: [PATCH] Return CNull meta when item is null --- src/main/java/com/laytonsmith/core/ObjectGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/laytonsmith/core/ObjectGenerator.java b/src/main/java/com/laytonsmith/core/ObjectGenerator.java index 08a56b7f0..e2a93709d 100644 --- a/src/main/java/com/laytonsmith/core/ObjectGenerator.java +++ b/src/main/java/com/laytonsmith/core/ObjectGenerator.java @@ -430,7 +430,7 @@ private static MCItemStack EmptyItem() { } public Construct itemMeta(MCItemStack is, Target t) { - if(!is.hasItemMeta()) { + if(is == null || !is.hasItemMeta()) { return CNull.NULL; } else { Construct display;