Check fall distance

This commit is contained in:
Mathieu Strypsteen 2024-09-23 10:25:56 +02:00
parent c6346e9c88
commit 8d1d6b6bfb

View file

@ -56,7 +56,7 @@ public class FallEvent extends Event {
@Override
public void run() {
for (Player player : MC13DTL.board.getPlayers(team)) {
if (player.getLocation().y() > targetHeight) {
if (player.getLocation().y() > targetHeight || player.getFallDistance() > 0) {
return;
}
}