Check fall distance
This commit is contained in:
parent
c6346e9c88
commit
8d1d6b6bfb
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ public class FallEvent extends Event {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
for (Player player : MC13DTL.board.getPlayers(team)) {
|
for (Player player : MC13DTL.board.getPlayers(team)) {
|
||||||
if (player.getLocation().y() > targetHeight) {
|
if (player.getLocation().y() > targetHeight || player.getFallDistance() > 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue