Skip to content

Commit

Permalink
update for new Denizen build
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 19, 2019
1 parent 5c58074 commit 0224e49
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -69,7 +69,7 @@ public String getAttribute(Attribute attribute) {
// @Plugin Depenizen, Towny
// -->
if (attribute.startsWith("has_town")) {
for (Location location : cuboid.getBlockLocations()) {
for (Location location : cuboid.getBlockLocationsUnfiltered()) {
if (TownyUniverse.getTownName(location) != null) {
return new ElementTag(true).getAttribute(attribute.fulfill(1));
}
Expand All @@ -88,7 +88,7 @@ public String getAttribute(Attribute attribute) {
ListTag list = new ListTag();
List<String> towns = new ArrayList<>();
try {
for (Location location : cuboid.getBlockLocations()) {
for (Location location : cuboid.getBlockLocationsUnfiltered()) {
String townName = TownyUniverse.getTownName(location);
if (townName != null && !towns.contains(townName)) {
list.add(new TownTag(TownyUniverse.getTownBlock(location).getTown()).identify());
Expand Down

0 comments on commit 0224e49

Please sign in to comment.