Skip to content

Commit

Permalink
Merge pull request #2 from RPDJF/fix-flightmode-issue
Browse files Browse the repository at this point in the history
Fix flightmode issue
  • Loading branch information
RPDJF authored Jul 25, 2024
2 parents c036e1d + ee341da commit e7175f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void onPlayerMove(PlayerMoveEvent event) {
Player player = event.getPlayer();
Location from = event.getFrom();
Location to = event.getTo();
if (from.getX() != to.getX() || from.getZ() != to.getZ() || from.getY() != to.getY()) {
if (from.getX() != to.getX() || from.getZ() != to.getZ() || from.getY() < to.getY()) {
player.teleport(from);
}
}
Expand Down

0 comments on commit e7175f2

Please sign in to comment.