Skip to content

Commit

Permalink
Correct some very confusing meta.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fortifier42 committed Nov 26, 2015
1 parent 7d436b3 commit ff70f90
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/main/java/net/aufdemrand/denizen/objects/dEntity.java
Expand Up @@ -1523,8 +1523,7 @@ public String getAttribute(Attribute attribute) {
// @returns Element
// @group attributes
// @description
// If the entity has a custom name, returns the name as an Element.
// Otherwise, returns null.
// Returns the entity's custom name, if any.
// -->
if (attribute.startsWith("custom_name")) {
return new Element(entity.getCustomName()).getAttribute(attribute.fulfill(1));
Expand Down Expand Up @@ -1866,8 +1865,7 @@ else if (mtr.angle == BlockFace.EAST) {
// @returns dEntity
// @group attributes
// @description
// If the entity has a passenger, returns the passenger as a dEntity.
// Otherwise, returns null.
// Returns the entity's passenger, if any.
// -->
if (attribute.startsWith("passenger") || attribute.startsWith("get_passenger")) {
if (!entity.isEmpty()) {
Expand All @@ -1881,8 +1879,7 @@ else if (mtr.angle == BlockFace.EAST) {
// @returns dEntity
// @group attributes
// @description
// If the entity is a projectile with a shooter, gets its shooter
// Otherwise, returns null.
// Returns the entity's shooter, if any.
// -->
if (attribute.startsWith("shooter") ||
attribute.startsWith("get_shooter")) {
Expand Down

0 comments on commit ff70f90

Please sign in to comment.