Player Vehicle Desync Fix

Quick rating

Community listing page, reviews here may not be monitored by the author.

Player Vehicle Desync Fix

No reviews yet

Fixes desync on player.hasVehicle() between server and client.

Mod Loaders
Fabric
Minecraft

Community voices

Reviews

List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Show per page
10
25
50
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

About

Project Details

Type
Mod
Latest Version
Player Vehicle Desync Fix 0.2.2

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Invoking ServerPlayerEntity.startRiding(vehicle) on server side while that vehicle is far away or even not loaded gives weird behavior such that:

  • Player just teleporting to the vehicle for riding
  • Player can just walk around freely in client's perspective while server still thinks player is riding a vehicle. And this makes player unable to interact with others that are far away from the vehicle since they are in unreachable distance on the server side. Also pressing dismount button makes player dismount next to the vehicle which looks like teleporting to it on client's perspective.
  • If the vehicle is in the middle of teleportation in client side (teleportation on server side can be just processed immediately) and player rides to it on client side, teleportation of that vehicle effectively stops at that point and player might stuck in the middle of blocks.

And this mod solves the issue by doing two things:

  • Server keep sending riding status synchronization packet when server detects desync on player's riding status. (player riding on server side while client is not)
  • Client receiving that packet checks if the target vehicle is actually around the player before actually calling ClientPlayerEntity.startRiding(entity) in order to prevent the unwanted side effect.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~32,000
Downloads
Last Updated
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works