Fix fall event

This commit is contained in:
Mathieu Strypsteen 2024-09-23 10:36:28 +02:00
parent 9f4b27c4c3
commit 559f7c5656

View file

@ -35,6 +35,8 @@ public class FallEvent extends Event {
}
Player player = MC13DTL.board.getPlayers(team).getFirst();
Location location = player.getLocation();
location.setX(((int) location.getX()) + 0.5);
location.setZ(((int) location.getX()) + 0.5);
World world = player.getWorld();
location.setY(world.getHighestBlockYAt(location));
targetHeight = (int) location.getY() + 5;