Skip to content

Commit

Permalink
Never write air,-1 or nonsense like that
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Mar 23, 2015
1 parent 4178532 commit 69229e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/aufdemrand/denizen/objects/dItem.java
Expand Up @@ -493,7 +493,7 @@ else if (isItemscript()) {
}

// Else, return the material name
if (item.getDurability() >= 16 || item.getDurability() < 0) {
if ((item.getDurability() >= 16 || item.getDurability() < 0) && item.getType() != Material.AIR) {
return "i@" + getMaterial().realName() + "," + item.getDurability() + PropertyParser.getPropertiesString(this);
}
return "i@" + getMaterial().identify().replace("m@", "") + PropertyParser.getPropertiesString(this);
Expand Down

0 comments on commit 69229e2

Please sign in to comment.