Fix fall event
This commit is contained in:
parent
9f4b27c4c3
commit
559f7c5656
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,8 @@ public class FallEvent extends Event {
|
||||||
}
|
}
|
||||||
Player player = MC13DTL.board.getPlayers(team).getFirst();
|
Player player = MC13DTL.board.getPlayers(team).getFirst();
|
||||||
Location location = player.getLocation();
|
Location location = player.getLocation();
|
||||||
|
location.setX(((int) location.getX()) + 0.5);
|
||||||
|
location.setZ(((int) location.getX()) + 0.5);
|
||||||
World world = player.getWorld();
|
World world = player.getWorld();
|
||||||
location.setY(world.getHighestBlockYAt(location));
|
location.setY(world.getHighestBlockYAt(location));
|
||||||
targetHeight = (int) location.getY() + 5;
|
targetHeight = (int) location.getY() + 5;
|
||||||
|
|
Loading…
Reference in a new issue