Skip to content

Commit

Permalink
Add "structure grows" and "portal created" world events.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcernat committed Sep 14, 2013
1 parent 8122bee commit bbcd485
Show file tree
Hide file tree
Showing 2 changed files with 259 additions and 142 deletions.
9 changes: 6 additions & 3 deletions src/main/java/net/aufdemrand/denizen/objects/dItem.java
Expand Up @@ -375,8 +375,12 @@ public boolean isItemscript() {

return containsLore("§0id:");
}

public dMaterial getMaterial() {
return new dMaterial(getItemStack().getType());
}

public String getMaterial() {
public String getMaterialName() {
return getItemStack().getType().name().toLowerCase();
}

Expand Down Expand Up @@ -643,8 +647,7 @@ public String getAttribute(Attribute attribute) {
// Returns the material corresponding to the item
// -->
if (attribute.startsWith("material"))
return new dMaterial(getItemStack().getType())
.getAttribute(attribute.fulfill(1));
return getMaterial().getAttribute(attribute.fulfill(1));

// <--[tag]
// @attribute <i@item.display>
Expand Down

0 comments on commit bbcd485

Please sign in to comment.