Permalink
Browse files

Ignore empty skull owner strings

  • Loading branch information...
PseudoKnight committed Sep 8, 2018
1 parent dfce8d0 commit c6dcf7e394ec3940b980b2ccfafd6408a6706d34
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/laytonsmith/core/ObjectGenerator.java
@@ -894,7 +894,7 @@ public MCItemMeta itemMeta(Construct c, MCMaterial mat, Target t) throws ConfigR
} else if(meta instanceof MCSkullMeta) {
if(ma.containsKey("owner")) {
Construct owner = ma.get("owner", t);
if(!(owner instanceof CNull)) {
if(!(owner instanceof CNull) && !owner.val().isEmpty()) {
((MCSkullMeta) meta).setOwner(owner.val());
}
}

0 comments on commit c6dcf7e

Please sign in to comment.