From 89e0cc296562e89b4ce62fbb1f248fe090d331ba Mon Sep 17 00:00:00 2001 From: mcmonkey4eva Date: Mon, 26 Aug 2013 18:40:57 -0700 Subject: [PATCH] Fix typos in Element --- src/main/java/net/aufdemrand/denizen/objects/Element.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/aufdemrand/denizen/objects/Element.java b/src/main/java/net/aufdemrand/denizen/objects/Element.java index f6f7d709e1..09e7b3e68b 100644 --- a/src/main/java/net/aufdemrand/denizen/objects/Element.java +++ b/src/main/java/net/aufdemrand/denizen/objects/Element.java @@ -203,7 +203,7 @@ public String getAttribute(Attribute attribute) { // @description // Returns the element as an entity. Note: the value must be a valid entity. // --> - if (attribute.startsWith("as_entity") + if (attribute.startsWith("asentity") || attribute.startsWith("as_entity")) return dEntity.valueOf(element).getAttribute(attribute.fulfill(1)); @@ -213,7 +213,7 @@ public String getAttribute(Attribute attribute) { // @description // Returns the element as a location. Note: the value must be a valid location. // --> - if (attribute.startsWith("as_location") + if (attribute.startsWith("aslocation") || attribute.startsWith("as_location")) return dLocation.valueOf(element).getAttribute(attribute.fulfill(1));