From a23344a3b8bfbbcba6f48aeb2935ce9195a3f972 Mon Sep 17 00:00:00 2001 From: evlad Date: Wed, 11 May 2022 16:38:08 +0200 Subject: [PATCH] Revert "Never decrease island under the starting size" This reverts commit 4b0c698eac489d3b48adc05aabc18bca7bf821cc. --- src/main/java/world/bentobox/boxed/AdvancementsManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/world/bentobox/boxed/AdvancementsManager.java b/src/main/java/world/bentobox/boxed/AdvancementsManager.java index a43d8fa..eff74c6 100644 --- a/src/main/java/world/bentobox/boxed/AdvancementsManager.java +++ b/src/main/java/world/bentobox/boxed/AdvancementsManager.java @@ -151,8 +151,7 @@ public class AdvancementsManager { */ public int checkIslandSize(Island island) { // Island is always a minimum of 1 for free. - int defaultSize = addon.getSettings().getIslandProtectionRange(); - int shouldSize = getIsland(island).getAdvancements().stream().mapToInt(this::getScore).sum() + defaultSize; + int shouldSize = getIsland(island).getAdvancements().stream().mapToInt(this::getScore).sum() + 1; if (shouldSize < 1) { // Boxes can never be less than 1 in protection size return 0;