Skip to content

Commit

Permalink
Update PlayerMoveListener.java
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Jan 19, 2024
1 parent 107fbc1 commit 79a22b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class PlayerMoveListener implements Listener {
public void onPlayerMove(PlayerMoveEvent event) {
if(loadConfig.throwfalldamage()) return;
Player player = event.getPlayer();
if(main.getThrown().contains(player) && player.isOnGround()) {
if(main.getThrown().contains(player) && player.getLocation().getBlock().getRelative(BlockFace.DOWN).getType() != Material.AIR && player.getFallDistance() == 0 && !(player.isFlying())) {
main.getThrown().remove(player);
}
}
Expand Down

0 comments on commit 79a22b3

Please sign in to comment.