Skip to content

Commit

Permalink
Fix nbt_attributes tag, for #1551
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Mar 1, 2017
1 parent 802c361 commit 282e0b8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -72,7 +72,7 @@ public String getAttribute(Attribute attribute) {
// @description
// Returns the value of this item's NBT key as a string Element as best it can.
// -->
if (attribute.startsWith("nbt")) {
if (attribute.matches("nbt")) {
return new Element(CustomNBT.getCustomNBT(item.getItemStack(), attribute.getContext(1), CustomNBT.KEY_DENIZEN))
.getAttribute(attribute.fulfill(1));
}
Expand Down

0 comments on commit 282e0b8

Please sign in to comment.