Fix concurrent island limit.

This commit is contained in:
tastybento 2024-08-20 20:52:02 -07:00
parent a2709110a6
commit 315a762b84
2 changed files with 5 additions and 2 deletions

View File

@ -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. -->

View File

@ -1774,7 +1774,10 @@ public class Settings implements WorldSettings {
* @return the concurrentIslands
*/
public int getConcurrentIslands() {
return concurrentIslands;
if (concurrentIslands <= 0) {
return BentoBox.getInstance().getSettings().getIslandNumber();
}
return this.concurrentIslands;
}
/**