Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Player markers could point to incorrect locations for two related reasons:
lastUpdatePositionwas shared by every mod-provided marker. Server payloads are incremental, so receiving an update for one marker changed the projection origin used by older markers that were not part of that packet. Those markers could therefore snap or drift even though their own relative location had not been updated.Vanilla waypoints were fed through the same projection path even though
getVanillaWaypoints()already recalculates their direction against the current camera every frame. Treating that live direction as an offset fromlastUpdatePositioncould produce an incorrect direction.This change stores the local player position alongside each mod-provided marker update instead of using one global origin.
Vanilla waypoints use their already-current direction directly instead of being projected from a stored origin.
Nearby loaded entities still use their real interpolated entity position, and
sendDistance=falsekeeps the existing direct-direction behavior.No network protocol or server-side changes are required.
Validation
./gradlew buildpasses locally on Java 25.git diff --checkpasses.PlayerLocatorPlusClient.ktis changed.Manual checks worth doing
sendDistance=falseshould keep its existing behavior.