Skip to content

fix: retain velocity after teleportation - #1310

Merged
Robotgiggle merged 2 commits into
FallingColors:mainfrom
drtheodor:fix/blink-velocity-reset
Sep 23, 2026
Merged

Robotgiggle merged 2 commits into
FallingColors:mainfrom
drtheodor:fix/blink-velocity-reset

Conversation

@drtheodor

Copy link
Copy Markdown
Contributor

This PR fixes a bug where teleportation spells (such as blink or great teleport) reset the player's velocity.

This is caused by mc resetting the velocity on client-side when handling the packet. The exact code that handles teleportation on the client resets velocity if there's no appropriate relative movement flags (RelativeMovement.X, RelativeMovement.Y and RelativeMovement.Z).

The fix just adds all the relative movement flags to teleportation. :P

@Robotgiggle Robotgiggle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Robotgiggle
Robotgiggle added this pull request to the merge queue Sep 23, 2026
Merged via the queue into FallingColors:main with commit 4db93ab Sep 23, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from 📋 Backlog to ✅ Done in Hex Casting Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants