Skip to content

Commit

Permalink
Fixed world borders showing red effect to players if they are nearby
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed May 21, 2022
1 parent 9ba266b commit 8d95c4d
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 0 deletions.
Expand Up @@ -113,6 +113,8 @@ public void setWorldBorder(SuperiorPlayer superiorPlayer, Island island) {
} else {
worldBorder = new WorldBorder();

worldBorder.setWarningDistance(0);

worldBorder.world = worldServer;
worldBorder.setSize((island.getIslandSize() * 2) + 1);

Expand Down
Expand Up @@ -143,6 +143,8 @@ public void setWorldBorder(SuperiorPlayer superiorPlayer, Island island) {
} else {
worldBorder = new WorldBorder();

worldBorder.setWarningDistance(0);

worldBorder.world = worldServer;
worldBorder.setSize((island.getIslandSize() * 2) + 1);

Expand Down
Expand Up @@ -139,6 +139,8 @@ public void setWorldBorder(SuperiorPlayer superiorPlayer, Island island) {
} else {
worldBorder = new WorldBorder();

worldBorder.setWarningDistance(0);

worldBorder.world = worldServer;
worldBorder.setSize((island.getIslandSize() * 2) + 1);

Expand Down
Expand Up @@ -150,6 +150,8 @@ public void setWorldBorder(SuperiorPlayer superiorPlayer, Island island) {
} else {
worldBorder = new WorldBorder();

worldBorder.setWarningDistance(0);

worldBorder.setWorld(worldServer);
worldBorder.setSize((island.getIslandSize() * 2) + 1);

Expand Down
Expand Up @@ -33,4 +33,8 @@ public double getSize() {
return handle.i();
}

public void setWarningDistance(int warningBlocks) {
handle.c(warningBlocks);
}

}
Expand Up @@ -152,6 +152,8 @@ public void setWorldBorder(SuperiorPlayer superiorPlayer, Island island) {
} else {
worldBorder = new WorldBorder();

worldBorder.setWarningDistance(0);

worldBorder.setWorld(worldServer);
worldBorder.setSize((island.getIslandSize() * 2) + 1);

Expand Down
Expand Up @@ -33,4 +33,8 @@ public double getSize() {
return handle.i();
}

public void setWarningDistance(int warningBlocks) {
handle.c(warningBlocks);
}

}
Expand Up @@ -109,6 +109,8 @@ public void setWorldBorder(SuperiorPlayer superiorPlayer, Island island) {
} else {
worldBorder = new WorldBorder();

worldBorder.setWarningDistance(0);

worldBorder.world = worldServer;
worldBorder.setSize((island.getIslandSize() * 2) + 1);

Expand Down

0 comments on commit 8d95c4d

Please sign in to comment.