Skip to content

Commit

Permalink
Fix concurrent island limit.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Aug 21, 2024
1 parent a270911 commit 315a762
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<powermock.version>2.0.9</powermock.version>
<!-- More visible way how to change dependency versions -->
<spigot.version>1.21-R0.1-SNAPSHOT</spigot.version>
<bentobox.version>2.4.0-SNAPSHOT</bentobox.version>
<bentobox.version>2.5.0-SNAPSHOT</bentobox.version>
<!-- Revision variable removes warning about dynamic version -->
<revision>${build.version}-SNAPSHOT</revision>
<!-- Do not change unless you want different name for local builds. -->
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/world/bentobox/boxed/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 315a762

Please sign in to comment.