Skip to content

Commit

Permalink
Fix <player.equipment.X> tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Jul 11, 2013
1 parent 1085434 commit d7c4752
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/net/aufdemrand/denizen/objects/dPlayer.java
Expand Up @@ -303,19 +303,19 @@ else if (attribute.startsWith("list.offline")) {

if (attribute.startsWith("equipment.boots"))
return new dItem(getPlayerEntity().getInventory().getBoots())
.getAttribute(attribute.fulfill(1));
.getAttribute(attribute.fulfill(2));

if (attribute.startsWith("equipment.chestplate"))
return new dItem(getPlayerEntity().getInventory().getChestplate())
.getAttribute(attribute.fulfill(1));
.getAttribute(attribute.fulfill(2));

if (attribute.startsWith("equipment.helmet"))
return new dItem(getPlayerEntity().getInventory().getHelmet())
.getAttribute(attribute.fulfill(1));
.getAttribute(attribute.fulfill(2));

if (attribute.startsWith("equipment.leggings"))
return new dItem(getPlayerEntity().getInventory().getLeggings())
.getAttribute(attribute.fulfill(1));
.getAttribute(attribute.fulfill(2));

if (attribute.startsWith("equipment"))
// The only way to return correct size for dInventory
Expand Down

0 comments on commit d7c4752

Please sign in to comment.