Skip to content

Commit

Permalink
Update IslandHook.java
Browse files Browse the repository at this point in the history
  • Loading branch information
haha252 authored Jan 24, 2024
1 parent 73298ca commit 5a6262c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
Expand Down

0 comments on commit 5a6262c

Please sign in to comment.