diff --git a/plugin/src/main/java/fr/euphyllia/skyllia/managers/skyblock/IslandHook.java b/plugin/src/main/java/fr/euphyllia/skyllia/managers/skyblock/IslandHook.java index 91f58e51..7ed2c56c 100644 --- a/plugin/src/main/java/fr/euphyllia/skyllia/managers/skyblock/IslandHook.java +++ b/plugin/src/main/java/fr/euphyllia/skyllia/managers/skyblock/IslandHook.java @@ -47,8 +47,8 @@ public IslandHook(Main main, IslandType islandType, UUID islandId, UUID ownerId, this.ownerId = ownerId; this.createDate = date; this.position = position; - if (size >= 511 || size <= 1) { - throw new MaxIslandSizeExceedException("The size of the island exceeds the permitted limit! Must be between 2 and 511."); + if (size >= 2049 || size <= 1) { + throw new MaxIslandSizeExceedException("The size of the island exceeds the permitted limit! Must be between 2 and 2049."); } this.size = size; } @@ -70,7 +70,7 @@ public double getSize() { @Override public void setSize(double rayon) throws MaxIslandSizeExceedException { - if (this.size >= 511 || this.size <= 1) { + if (this.size >= 2049 || this.size <= 1) { throw new MaxIslandSizeExceedException("The size of the island exceeds the permitted limit! Must be between 2 and 511."); // Fix https://github.com/Euphillya/skyllia/issues/9 } this.size = rayon;