Skip to content

Commit

Permalink
Return CNull meta when item is null
Browse files Browse the repository at this point in the history
  • Loading branch information
PseudoKnight committed Jan 3, 2025
1 parent daf8c53 commit cc37fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/laytonsmith/core/ObjectGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cc37fca

Please sign in to comment.