Skip to content

Commit

Permalink
Fix copy-paste issue that prevent from completing ISLAND type challen…
Browse files Browse the repository at this point in the history
…ges.
  • Loading branch information
BONNe committed Aug 30, 2019
1 parent fda0ac8 commit fe3a18c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -879,9 +879,9 @@ private ChallengeResult checkSurrounding(int factor)
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.
Expand All @@ -890,6 +890,7 @@ private ChallengeResult checkSurrounding(int factor)
boundingBox.getHeight() > distance * 2 + 3)
{
this.addon.logError("BoundingBox is larger than SearchRadius. " +
" | BoundingBox: " + boundingBox.toString() +
" | Search Distance: " + this.challenge.getSearchRadius() +
" | Location: " + this.user.getLocation().toString() +
" | Center: " + island.getCenter().toString() +
Expand Down

0 comments on commit fe3a18c

Please sign in to comment.