mojira.dev
MC-99604

Player's aim lags a tick behind visual crosshair position

Whenever you move your camera, the actual functional crosshair location lags behind where it shows visually by 1/20th of a second. This applies to sword swinging, block breaking, and anything else that you click on to interact with. This is mostly what causes the perceived hit registration issues in PvP since 1.8.

Video demonstration: https://youtu.be/HTw87opulQg


Code analysis by @unknown in this comment.

Related issues

Comments

migrated

Easily reproducible by spinning around, looking at the ground, pausing the game and observing cursor position vs block outline position.

marcono1234

Please link to this comment in the description

The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.

Calling the method net.minecraft.entity.Entity.rayTrace(double, float) not with the partial ticks but with 1f instead, makes the game use the current head position and look. This might solve this problem.

Qwuiblington

Erik Broes

Confirmed

Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.10.1, Minecraft 1.10.2, Minecraft 16w36a, Minecraft 16w39a, Minecraft 16w39b

Retrieved