Skip to content

Conversation

Alexandra-Myers
Copy link

@Alexandra-Myers Alexandra-Myers commented Sep 24, 2025

Up until 1.14, knockback would happen instantly on the tick after the packets are processed.
In 1.14, entity trackers now updated at the time of chunk ticking, rather than after entities were ticked. This causes the order to go like this:

Packet received on the server ->
(Next tick) Entity tracker forces an update ->
Entity ticks, updating its position according to the knockback

Since the entity ticks after the entity tracker sends the packet to the client, this causes a desync, as intended behavior is for the new position to be sent at the same tick. This inconsistency leads to the client receiving the new position of the entity at an arbitrary delay, between 1 tick and the update interval for the entity (for most mobs, 3), rather than immediately alongside their velocity, leading to a desync in position when an event occurs upon a packet being received (e.g. attacking) that causes knockback in an entity.

# Conflicts:
#	paper-server/patches/features/0034-Relocate-tracker-tick-to-fix-MC-297196.patch
@Alexandra-Myers Alexandra-Myers requested a review from a team as a code owner September 24, 2025 01:32
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Sep 24, 2025
@Owen1212055
Copy link
Member

Is this still an issue as of our recent tick loop changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Awaiting review
Development

Successfully merging this pull request may close these issues.

2 participants