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 1147a91 commit 440d9a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/world/bentobox/skygrid/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.bukkit.Material;
import org.bukkit.entity.EntityType;

import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.api.configuration.ConfigComment;
import world.bentobox.bentobox.api.configuration.ConfigEntry;
import world.bentobox.bentobox.api.configuration.StoreAt;
Expand Down Expand Up @@ -1656,6 +1657,9 @@ public void setEndFrameHeight(int endFrameHeight) {
* @return the concurrentIslands
*/
public int getConcurrentIslands() {
if (concurrentIslands <= 0) {
return BentoBox.getInstance().getSettings().getIslandNumber();
}
return concurrentIslands;
}

Expand Down

0 comments on commit 440d9a8

Please sign in to comment.