this is technically a duplicate of MC-142246, but that was closed as resolved, so I made this new one
when flying wit an elytra at higher speeds with fireworks, the player starts to flicker
this is caused by floating point inprecissions
inΒ
net.minecraft.client.renderer.entity.player.PlayerRenderer#extractFlightData
in this part
if (d > 0.0 && d2 > 0.0) {
playerRenderState.shouldApplyFlyingYRot = true;
double d3 = (vec32.x * vec3.x + vec32.z * vec3.z) / Math.sqrt(d * d2);
double d4 = vec32.x * vec3.z - vec32.z * vec3.x;
playerRenderState.flyingYRot = (float)(Math.signum(d4) * Math.acos(d3));
}
d3 can get sligthly above 1 (like 1.0000000000000002), which produces a NaN, because acos of >1 is NaN
Linked issues
Attachments
Comments

Thank you for your report!
We're tracking this issue in MC-111516, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support (Technical Issues) β π§ Microsoft Support (Account Issues)
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.