From 315a762b84d7ce6a9f3b2494f79081bd25d14407 Mon Sep 17 00:00:00 2001 From: tastybento Date: Tue, 20 Aug 2024 20:52:02 -0700 Subject: [PATCH] Fix concurrent island limit. --- pom.xml | 2 +- src/main/java/world/bentobox/boxed/Settings.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index a9c8f85..51c04b3 100644 --- a/pom.xml +++ b/pom.xml @@ -59,7 +59,7 @@ 2.0.9 1.21-R0.1-SNAPSHOT - 2.4.0-SNAPSHOT + 2.5.0-SNAPSHOT ${build.version}-SNAPSHOT diff --git a/src/main/java/world/bentobox/boxed/Settings.java b/src/main/java/world/bentobox/boxed/Settings.java index 2c6b0e4..ca20d18 100644 --- a/src/main/java/world/bentobox/boxed/Settings.java +++ b/src/main/java/world/bentobox/boxed/Settings.java @@ -1774,7 +1774,10 @@ public void setIgnoreAdvancements(boolean ignoreAdvancements) { * @return the concurrentIslands */ public int getConcurrentIslands() { - return concurrentIslands; + if (concurrentIslands <= 0) { + return BentoBox.getInstance().getSettings().getIslandNumber(); + } + return this.concurrentIslands; } /**