Skip to content

Commit

Permalink
Merge pull request #1119 from BGP0/2.0-2
Browse files Browse the repository at this point in the history
  • Loading branch information
MWHunter authored Aug 19, 2023
2 parents 85953d7 + 8659eb1 commit 9695bac
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ public void onPacketReceive(PacketReceiveEvent event) {
player.isSneaking = false;
break;
case START_FLYING_WITH_ELYTRA:
if (player.onGround || player.lastOnGround) {
player.getSetbackTeleportUtil().executeForceResync();
event.setCancelled(true);
player.onPacketCancel();
break;
}
// Starting fall flying is server sided on 1.14 and below
if (player.getClientVersion().isOlderThan(ClientVersion.V_1_15)) return;
ItemStack chestPlate = player.getInventory().getChestplate();
Expand Down

0 comments on commit 9695bac

Please sign in to comment.