Skip to content

Commit

Permalink
Fix Folia World#getElevation calls getting stuck when owned by the sa…
Browse files Browse the repository at this point in the history
…me region (#364)
  • Loading branch information
Warriorrrr authored Sep 12, 2024
1 parent 3bc7584 commit b04f142
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ public Border getWorldBorder() {

@Override
public int getElevation(final int x, final int z) {
if (Folia.isFolia()) {
final org.bukkit.Location location = new org.bukkit.Location(world, x, 0, z);
final org.bukkit.Location location = new org.bukkit.Location(world, x, 0, z);
if (Folia.isFolia() && !Folia.isTickThread(location)) {
return CompletableFuture
.supplyAsync(() -> getElevationForLocation(x, z), command -> Folia.schedule(plugin, location, command))
.join();
Expand Down

0 comments on commit b04f142

Please sign in to comment.