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

Pre load the target area for the player before they get teleported to there #1372

Open
farooqkz opened this issue Jan 5, 2025 · 1 comment

Comments

@farooqkz
Copy link
Contributor

farooqkz commented Jan 5, 2025

Currently:

  1. Player dies
  2. Respawn wait(5 seconds) starts
  3. After that the player gets teleported back to base
  4. And after that the base area is updated for the player

After 1 and before 2, the server or client should load/update the base area so when the player gets teleported there, it is already updated. This results in better UX and removing those block addition/removal flashes after respawn.

Either core.force_load() or player:send_mapblock() should be used.

@LoneWolfHT
Copy link
Member

force_load() is serverside IIRC, send_mapblock() is what you'd want

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

No branches or pull requests

2 participants