Skip to content

Commit

Permalink
Removed Double oxygen tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Fortifier42 committed Oct 11, 2015
1 parent 6068f2f commit 5a2a3a0
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/main/java/net/aufdemrand/denizen/objects/dPlayer.java
Expand Up @@ -1571,26 +1571,6 @@ else if (getPlayerEntity().getFoodLevel() / maxHunger < 1)
return new Element(getPlayerEntity().getFoodLevel())
.getAttribute(attribute.fulfill(1));

// <--[tag]
// @attribute <p@player.oxygen.max>
// @returns Element(Number)
// @description
// returns how much air the player can have.
// -->
if (attribute.startsWith("oxygen.max"))
return new Element(getPlayerEntity().getMaximumAir())
.getAttribute(attribute.fulfill(2));

// <--[tag]
// @attribute <p@player.oxygen>
// @returns Element(Number)
// @description
// returns how much air the player has.
// -->
if (attribute.startsWith("oxygen"))
return new Element(getPlayerEntity().getRemainingAir())
.getAttribute(attribute.fulfill(1));

// <--[tag]
// @attribute <p@player.gamemode>
// @returns Element
Expand Down

0 comments on commit 5a2a3a0

Please sign in to comment.