forked from mirror/Folia
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. Fixes https://github.com/PaperMC/Folia/issues/197 |
||
---|---|---|
.. | ||
0001-Build-changes.patch | ||
0002-MC-Dev-fixes.patch | ||
0003-Threaded-Regions.patch | ||
0004-Max-pending-logins.patch | ||
0005-Add-chunk-system-throughput-counters-to-tps.patch | ||
0006-Make-CraftEntity-getHandle-and-overrides-perform-thr.patch | ||
0007-Disable-mid-tick-task-execution.patch | ||
0008-Throw-UnsupportedOperationException-for-broken-APIs.patch | ||
0009-Fix-tests-by-removing-them.patch | ||
0010-Require-plugins-to-be-explicitly-marked-as-Folia-sup.patch | ||
0011-Prevent-block-updates-in-non-loaded-or-non-owned-chu.patch | ||
0012-Block-reading-in-world-tile-entities-on-worldgen-thr.patch | ||
0013-Skip-worldstate-access-when-waking-players-up-during.patch | ||
0014-Do-not-access-POI-data-for-lodestone-compass.patch | ||
0015-Synchronize-PaperPermissionManager.patch | ||
0016-Fix-off-region-raid-heroes.patch | ||
0017-Sync-vehicle-position-to-player-position-on-player-d.patch | ||
0018-Region-profiler.patch | ||
0019-Fix-entity-tracker-desync-when-new-players-are-added.patch |