From fe3a18c459cdfd61961b22d06d96115d06dc9b5d Mon Sep 17 00:00:00 2001 From: BONNe1704 Date: Fri, 30 Aug 2019 17:15:36 +0300 Subject: [PATCH] Fix copy-paste issue that prevent from completing ISLAND type challenges. --- .../java/world/bentobox/challenges/tasks/TryToComplete.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/world/bentobox/challenges/tasks/TryToComplete.java b/src/main/java/world/bentobox/challenges/tasks/TryToComplete.java index 550e64a..2573501 100644 --- a/src/main/java/world/bentobox/challenges/tasks/TryToComplete.java +++ b/src/main/java/world/bentobox/challenges/tasks/TryToComplete.java @@ -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() +