Skip to content

Commit

Permalink
Fix previous commit, add some notes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Mar 2, 2016
1 parent 1a691bd commit b4add64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/aufdemrand/denizen/objects/dEntity.java
Expand Up @@ -1725,8 +1725,8 @@ else if (getLivingEntity().getType() == EntityType.PIG) {
// @description
// Returns the item the entity is holding in their off hand, or i@air if none.
// -->
if (attribute.startsWith("item_in_hand") ||
attribute.startsWith("iteminhand")) {
if (attribute.startsWith("item_in_offhand") ||
attribute.startsWith("iteminoffhand")) {
return new dItem(getLivingEntity().getEquipment().getItemInOffHand())
.getAttribute(attribute.fulfill(1));
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/aufdemrand/denizen/objects/dPlayer.java
Expand Up @@ -2558,9 +2558,11 @@ public void adjust(Mechanism mechanism) {
// based on an arbitrary scale of 0 to 200. EG:
// - adjust <player> show_boss_bar:Hello
// - adjust <player> show_boss_bar:100|Hello
// NOTE: This will soon be replaced with a command!
// @tags
// None
// -->
// TODO: Command!
if (mechanism.matches("show_boss_bar")) {
if (!value.asString().isEmpty()) {
String[] split = value.asString().split("[\\|" + dList.internal_escape + "]", 2);
Expand Down

0 comments on commit b4add64

Please sign in to comment.