Skip to content

Commit

Permalink
Fix previous commit a little
Browse files Browse the repository at this point in the history
JAAAAVVAAAAAAA!!!!!!!!!
  • Loading branch information
mcmonkey4eva committed Jan 31, 2016
1 parent 1880de6 commit 8d06697
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/net/aufdemrand/denizen/objects/dLocation.java
Expand Up @@ -1120,21 +1120,21 @@ else if (yaw < 315) {
if (index > max) {
break fullloop;
}
if (Utilities.checkLocation(this, tstart.add(x + 0.5, y + 0.5, z + 0.5), radius)) {
if (Utilities.checkLocation(this, tstart.clone().add(x + 0.5, y + 0.5, z + 0.5), radius)) {
if (!materials.isEmpty()) {
for (dMaterial material : materials) {
if (material.hasData() && material.getData() != 0) { // TODO: less arbitrary matching
if (material.matchesMaterialData(tstart.add(x, y, z).getBlock().getState().getData())) {
found.add(new dLocation(tstart.add(x, y, z)));
if (material.matchesMaterialData(tstart.clone().add(x, y, z).getBlock().getState().getData())) {
found.add(new dLocation(tstart.clone().add(x, y, z)));
}
}
else if (material.getMaterial() == tstart.add(x, y, z).getBlock().getType()) {
found.add(new dLocation(tstart.add(x, y, z)));
else if (material.getMaterial() == tstart.clone().add(x, y, z).getBlock().getType()) {
found.add(new dLocation(tstart.clone().add(x, y, z)));
}
}
}
else {
found.add(new dLocation(tstart.add(x, y, z)));
found.add(new dLocation(tstart.clone().add(x, y, z)));
}
}
}
Expand Down

0 comments on commit 8d06697

Please sign in to comment.