Skip to content

Commit

Permalink
Update dEntity
Browse files Browse the repository at this point in the history
Also, remove dItem 1.8 TODO - it's still correct
  • Loading branch information
Morphan1 committed Nov 29, 2014
1 parent 592fc81 commit 375cdb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/aufdemrand/denizen/objects/dEntity.java
Expand Up @@ -2168,9 +2168,9 @@ else if (isLivingEntity()) {
dList list = dList.valueOf(value.asString());
if (list.size() > 1) {
if (list.get(0).equalsIgnoreCase("true"))
((CraftAnimals)getLivingEntity()).getHandle().a((EntityHuman) null); // TODO: 1.8 UPDATE - is this right?
((CraftAnimals)getLivingEntity()).getHandle().a((EntityHuman) null);
else
((CraftAnimals)getLivingEntity()).getHandle().cf();
((CraftAnimals)getLivingEntity()).getHandle().cq();
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/aufdemrand/denizen/objects/dItem.java
Expand Up @@ -720,7 +720,7 @@ public String getAttribute(Attribute attribute) {
// {'text':'Item','color':'white','hoverEvent':{'action':'show_item','value':'{<player.item_in_hand.json>}'}}]}"
// -->
if (attribute.startsWith("json")) {
String JSON = CraftItemStack.asNMSCopy(item).C().getChatModifier().toString(); // TODO: 1.8 UPDATE: Is this correct?
String JSON = CraftItemStack.asNMSCopy(item).C().getChatModifier().toString();
return new Element(JSON.substring(176, JSON.length() - 154))
.getAttribute(attribute.fulfill(1));
}
Expand Down

0 comments on commit 375cdb4

Please sign in to comment.