Fix copy-paste issue that prevent from completing ISLAND type challenges.

This commit is contained in:
BONNe1704 2019-08-30 17:15:36 +03:00
parent fda0ac8318
commit fe3a18c459
1 changed files with 3 additions and 2 deletions

View File

@ -879,9 +879,9 @@ public class TryToComplete
boundingBox.expand(BlockFace.WEST, Math.abs(boundingBox.getMaxX() - island.getMaxX())); boundingBox.expand(BlockFace.WEST, Math.abs(boundingBox.getMaxX() - island.getMaxX()));
} }
if (boundingBox.getMaxZ() > island.getMinZ()) if (boundingBox.getMaxZ() > island.getMaxZ())
{ {
boundingBox.expand(BlockFace.SOUTH, Math.abs(boundingBox.getMaxZ() - island.getMinZ())); boundingBox.expand(BlockFace.SOUTH, Math.abs(boundingBox.getMaxZ() - island.getMaxZ()));
} }
// Protection code. Do not allow to select too large region for completing challenge. // Protection code. Do not allow to select too large region for completing challenge.
@ -890,6 +890,7 @@ public class TryToComplete
boundingBox.getHeight() > distance * 2 + 3) boundingBox.getHeight() > distance * 2 + 3)
{ {
this.addon.logError("BoundingBox is larger than SearchRadius. " + this.addon.logError("BoundingBox is larger than SearchRadius. " +
" | BoundingBox: " + boundingBox.toString() +
" | Search Distance: " + this.challenge.getSearchRadius() + " | Search Distance: " + this.challenge.getSearchRadius() +
" | Location: " + this.user.getLocation().toString() + " | Location: " + this.user.getLocation().toString() +
" | Center: " + island.getCenter().toString() + " | Center: " + island.getCenter().toString() +