mirror of
https://github.com/BentoBoxWorld/Boxed.git
synced 2024-11-30 12:54:33 +01:00
Fix concurrent island limit.
This commit is contained in:
parent
a2709110a6
commit
315a762b84
2
pom.xml
2
pom.xml
@ -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. -->
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user