Skip to content

Commit

Permalink
fix .above and .below location tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 19, 2015
1 parent 9e84428 commit de39947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/aufdemrand/denizen/objects/dLocation.java
Expand Up @@ -409,7 +409,7 @@ public String getAttribute(Attribute attribute) {
// Returns the location one block above this location.
// -->
if (attribute.startsWith("above"))
return new dLocation(this.add(0, 1, 0))
return new dLocation(this.clone().add(0, 1, 0))
.getAttribute(attribute.fulfill(1));

// <--[tag]
Expand All @@ -419,7 +419,7 @@ public String getAttribute(Attribute attribute) {
// Returns the location one block below this location.
// -->
if (attribute.startsWith("below"))
return new dLocation(this.add(0, -1, 0))
return new dLocation(this.clone().add(0, -1, 0))
.getAttribute(attribute.fulfill(1));

// <--[tag]
Expand Down

0 comments on commit de39947

Please sign in to comment.