mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-25 11:46:54 +01:00
Worldborder changes are now done synchronously.
This commit is contained in:
parent
2d89cb7525
commit
536ae8c720
@ -59,9 +59,7 @@ import javax.annotation.Nullable;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.concurrent.CompletableFuture;
|
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
public class IslandManager {
|
public class IslandManager {
|
||||||
|
|
||||||
@ -1466,14 +1464,16 @@ public class IslandManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
double increment = island.getSize() % 2 != 0 ? 0.5d : 0.0d;
|
double increment = island.getSize() % 2 != 0 ? 0.5d : 0.0d;
|
||||||
|
|
||||||
if (configLoad.getBoolean("Island.WorldBorder.Enable") && island.isBorder()) {
|
Bukkit.getScheduler().runTask(plugin, () -> {
|
||||||
WorldBorder.send(player, island.getBorderColor(), island.getSize(),
|
if (configLoad.getBoolean("Island.WorldBorder.Enable") && island.isBorder()) {
|
||||||
island.getLocation(worldManager.getIslandWorld(player.getWorld()),
|
WorldBorder.send(player, island.getBorderColor(), island.getSize(),
|
||||||
IslandEnvironment.Island).clone().add(increment, 0, increment));
|
island.getLocation(worldManager.getIslandWorld(player.getWorld()),
|
||||||
} else {
|
IslandEnvironment.Island).clone().add(increment, 0, increment));
|
||||||
WorldBorder.send(player, null, 1.4999992E7D, new org.bukkit.Location(player.getWorld(), 0, 0, 0));
|
} else {
|
||||||
}
|
WorldBorder.send(player, null, 1.4999992E7D, new org.bukkit.Location(player.getWorld(), 0, 0, 0));
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user