mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-02-17 04:02:04 +01:00
Trying to fix remove from water lag
This commit is contained in:
parent
45a00b1eef
commit
cf5bc5a12c
@ -111,8 +111,10 @@ public class TeleportCommand extends SubCommand {
|
||||
|
||||
Bukkit.getServer().getScheduler().runTask(skyblock, () -> {
|
||||
Location loc = island.getLocation(IslandWorld.Normal, IslandEnvironment.Main);
|
||||
LocationUtil.removeWaterFromLoc(skyblock, loc);
|
||||
PaperLib.teleportAsync(player, loc);
|
||||
PaperLib.getChunkAtAsync(loc).thenRun((() -> {
|
||||
LocationUtil.removeWaterFromLoc(skyblock, loc);
|
||||
PaperLib.teleportAsync(player, loc);
|
||||
}));
|
||||
|
||||
if(!configLoad.getBoolean("Island.Teleport.FallDamage", true)){
|
||||
player.setFallDistance(0.0F);
|
||||
|
Loading…
Reference in New Issue
Block a user