mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2025-01-03 15:08:04 +01:00
Fix copy-paste issue that prevent from completing ISLAND type challenges.
This commit is contained in:
parent
fda0ac8318
commit
fe3a18c459
@ -879,9 +879,9 @@ public class TryToComplete
|
||||
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.
|
||||
@ -890,6 +890,7 @@ public class TryToComplete
|
||||
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() +
|
||||
|
Loading…
Reference in New Issue
Block a user