Skip to content

Handle swapping client-side if possible to more gracefully degrade function on lagging servers #30

Description

@magneticflux-

Use case

On a server a slow or unstable connection, there may be periods of ~1-2 seconds where the server does not respond immediately. If one of those periods occurs while trying to take off or falling, nothing happens and the player either does not take off or takes falling damage unexpectedly.

Details

Right now, flight only happens when the server receives the player's position or item use packets, regardless of if the client has the mod or not. There's nothing we can do if the client doesn't have the mod (they just have to wait for the server response), but if the client does have the mod, we can equip the elytra client-side immediately, knowing that the server will agree with our state when it catches up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions