diff --git a/plugin/src/main/java/net/aufdemrand/denizen/objects/properties/item/ItemNBT.java b/plugin/src/main/java/net/aufdemrand/denizen/objects/properties/item/ItemNBT.java index 2f8def0a46..546db80ced 100644 --- a/plugin/src/main/java/net/aufdemrand/denizen/objects/properties/item/ItemNBT.java +++ b/plugin/src/main/java/net/aufdemrand/denizen/objects/properties/item/ItemNBT.java @@ -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)); }