Fixed NoFall (C) false positives, optimized chunk watching, fixed lag backs

This commit is contained in:
Dawson
2022-11-04 12:02:32 -04:00
parent 29dc536c7c
commit dfb04d50a2
7 changed files with 13 additions and 9 deletions
@@ -89,13 +89,13 @@ public class Check implements ECheck {
} else {
player.getInfo().getLastCancel().reset();
Location ground = player.getInfo().isServerGround() && player.getMovement().getLastTeleport().isPassed(1)
final Location ground = player.getInfo().isServerGround()
? player.getMovement().getFrom().getLoc()
.toLocation(player.getBukkitPlayer().getWorld())
: MovementUtils.findGroundLocation(player.getMovement().getFrom().getLoc()
.toLocation(player.getBukkitPlayer().getWorld()), 10);
player.getBukkitPlayer().teleport(ground);
RunUtils.task(() -> player.getBukkitPlayer().teleport(ground));
}
}