Skip to content

Use correct teleport packet for 1.21.2+ - #385

Open
SamB440 wants to merge 1 commit into
FancyInnovations:mainfrom
SamB440:fix/modern-teleport-packet
Open

SamB440 wants to merge 1 commit into
FancyInnovations:mainfrom
SamB440:fix/modern-teleport-packet

Conversation

@SamB440

@SamB440 SamB440 commented Nov 10, 2026

Copy link
Copy Markdown

📋 Description

Since Minecraft 1.21.2, the ClientboundTeleportEntityPacket is no longer the real teleport packet. It was instead renamed to ClientboundEntityPositionSyncPacket. Per Minecraft wiki:

The Mojang-specified name of this packet was changed in 1.21.2 from teleport_entity to entity_position_sync. There is a newer teleport_entity, which this document more appropriately calls Synchronize Vehicle Position. That packet has a different function and will lead to confusing results if used in place of this one.

✅ Checklist

  • My code follows the project's coding style and guidelines
  • I have tested my changes locally and they work as expected
  • I have added necessary documentation (if applicable)
  • I have linked related issues using Fixes #issue_number or Closes #issue_number
  • I have rebased/merged with the latest main branch

🔍 Changes

Changed ClientboundTeleportEntityPacket to be ClientboundEntityPositionSyncPacket for 1.21.2+.


🧪 Testing

Tested on a live server using FancyNPCs that had reported issues due to an anticheat cancelling the packet when the player isn't in a vehicle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant