Skip to content

Commit 315a762

Browse files
committed
Fix concurrent island limit.
1 parent a270911 commit 315a762

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<powermock.version>2.0.9</powermock.version>
6060
<!-- More visible way how to change dependency versions -->
6161
<spigot.version>1.21-R0.1-SNAPSHOT</spigot.version>
62-
<bentobox.version>2.4.0-SNAPSHOT</bentobox.version>
62+
<bentobox.version>2.5.0-SNAPSHOT</bentobox.version>
6363
<!-- Revision variable removes warning about dynamic version -->
6464
<revision>${build.version}-SNAPSHOT</revision>
6565
<!-- Do not change unless you want different name for local builds. -->

src/main/java/world/bentobox/boxed/Settings.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1774,7 +1774,10 @@ public void setIgnoreAdvancements(boolean ignoreAdvancements) {
17741774
* @return the concurrentIslands
17751775
*/
17761776
public int getConcurrentIslands() {
1777-
return concurrentIslands;
1777+
if (concurrentIslands <= 0) {
1778+
return BentoBox.getInstance().getSettings().getIslandNumber();
1779+
}
1780+
return this.concurrentIslands;
17781781
}
17791782

17801783
/**

0 commit comments

Comments
 (0)