Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunks not loading on teleport #2

Open
BattleDash opened this issue Jan 12, 2021 · 3 comments
Open

Chunks not loading on teleport #2

BattleDash opened this issue Jan 12, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@BattleDash
Copy link
Owner

When teleporting to unloaded chunks and then getting teleported again less than 3 ticks later, the client will get stuck and never load the chunks unless it stops for at least 3 ticks.

@BattleDash BattleDash added bug Something isn't working help wanted Extra attention is needed labels Jan 12, 2021
@BattleDash BattleDash self-assigned this Jan 12, 2021
@BattleDash
Copy link
Owner Author

I did some debugging and logged the outgoing chunk map packets from the server, turns out when the constant tping is happening it stops sending any chunk packets at all. This means the bug is server side so it should be fixable, but it may require a custom spigot version, or some kind of mixins.

@BattleDash
Copy link
Owner Author

Managed to fix this; ((CraftPlayer) player).getHandle().x().getPlayerChunkMap().movePlayer(((CraftPlayer) player).getHandle());

The current solution however uses NMS, which I want to avoid, so I'm leaving this open for now.

@BattleDash
Copy link
Owner Author

BattleDash commented Jan 15, 2021

Submitted a Spigot pull request about this: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/spigot/pull-requests/106/overview

@BattleDash BattleDash removed the help wanted Extra attention is needed label Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant