Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 02:50:09 +01:00
1b67e02385
The delta position packet instructs the client to update the entity position by a position difference. However, this position difference is relative to the last position in the entity tracker state, not the last position which has been sent to the player. As a result, if the last position the player has recorded is different than the one stored in the entity tracker (which occurs when a new player is added to an existing entity tracker state) then the sent position difference will cause a position desync for the client. We can resolve this problem by either tracking the last position sent per-player, or by simply resetting the last sent position in the entity tracker state every time a new player is added. Resetting the last sent position every time a new player is added to the tracker is just easier to do, so that is what this patch does. |
||
---|---|---|
.. | ||
api | ||
server |