diff --git a/src/main/java/ac/grim/grimac/events/packets/PacketEntityAction.java b/src/main/java/ac/grim/grimac/events/packets/PacketEntityAction.java index 3558675116..136a928217 100644 --- a/src/main/java/ac/grim/grimac/events/packets/PacketEntityAction.java +++ b/src/main/java/ac/grim/grimac/events/packets/PacketEntityAction.java @@ -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();