Skip to content

Commit 5dc1117

Browse files
committed
Fix missing skull owner key check
1 parent dedc23d commit 5dc1117

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/java/com/laytonsmith/core/ObjectGenerator.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -813,9 +813,11 @@ public MCItemMeta itemMeta(Construct c, MCMaterial mat, Target t) throws ConfigR
813813
}
814814
}
815815
} else if(meta instanceof MCSkullMeta) {
816-
Construct owner = ma.get("owner", t);
817-
if(!(owner instanceof CNull)) {
818-
((MCSkullMeta) meta).setOwner(owner.val());
816+
if(ma.containsKey("owner")) {
817+
Construct owner = ma.get("owner", t);
818+
if(!(owner instanceof CNull)) {
819+
((MCSkullMeta) meta).setOwner(owner.val());
820+
}
819821
}
820822
} else if(meta instanceof MCEnchantmentStorageMeta) {
821823
if(ma.containsKey("stored")) {

0 commit comments

Comments
 (0)