From de39947a0bdb741ff1054a17c1ea356835449b8b Mon Sep 17 00:00:00 2001 From: mcmonkey4eva Date: Sun, 18 Oct 2015 20:40:28 -0700 Subject: [PATCH] fix .above and .below location tags --- src/main/java/net/aufdemrand/denizen/objects/dLocation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/aufdemrand/denizen/objects/dLocation.java b/src/main/java/net/aufdemrand/denizen/objects/dLocation.java index 09ea9a185f..d8aaa75253 100644 --- a/src/main/java/net/aufdemrand/denizen/objects/dLocation.java +++ b/src/main/java/net/aufdemrand/denizen/objects/dLocation.java @@ -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] @@ -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]