When you press sneak while flying with the Elytra wings in F5 mode, the camera angle changes. This is due to the eye level changes (you can see this with hitboxes shown). The eye level changes to the sneaking height's eye level (one block up), above the hitbox of the model and the camera adjust to the eye level.
Related issues
is duplicated by
Attachments
Comments


yes, the player's position in flight equipped with elytra is different from that snapshot. normally the position is lower.

Also, the following occurs in 1st person:
When not sneaking, the player will land when the camera is 1 block above the ground
When sneaking, the player will land when the camera is 2 blocks above the ground

This happens to me, I also use F3+B to show hitboxes.

Confirmed for 15w43a

Confirmed for 15w43c.

Confirmed for 15w44b

Confirmed for 15w47c


Please remove the wrong duplicates

Done, thanks.

1.9 pre 4 is affected. this can cause suffocation damage when flying in small gaps/near ceiling.

Confirmed for 1.9.4.

Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.
This is an automated comment on any open or reopened issue with out-of-date affected versions.

Confirmed for 17w16b.

The following is based on a decompiled version of Minecraft 1.11 using MCP 9.35.
The reason for this is that the method net.minecraft.entity.player.EntityPlayer.getEyeHeight()
returns 1.54F when the player is sneaking, whether the player is flying or not.
public float getEyeHeight() {
float f = 1.62F;
if (this.isPlayerSleeping()) {
f = 0.2F;
} else if (!this.isSneaking() && this.height != 1.65F) {
if (this.isElytraFlying() || this.height == 0.6F) {
f = 0.4F;
}
} else {
f -= 0.08F;
}
return f;
}
Can confirm for MC 1.12.1.

Confirmed to be fixed in 1.13-pre7

Confirmed as well.
Marked as fixed for 1.13-pre9 because older versions aren't selectable anymore.