pmmp / PocketMine-MP

A server software for Minecraft: Bedrock Edition in PHP
https://pmmp.io
GNU Lesser General Public License v3.0
3.28k stars 1.56k forks source link

Chunks used by players become active before the player spawns #2718

Open dktapps opened 5 years ago

dktapps commented 5 years ago

Issue description

When a player connects to the server, there is a small space of time between initial chunk loading and the player spawning. During this time, chunks that the player is using are ticking despite the player not yet having spawned in the world.

Steps to reproduce the issue

  1. Apply Levitation to yourself and a zombie at the same time.
  2. Float a little distance and observe the vertical distance between yourself and the zombie.
  3. Quit and rejoin. Notice that the zombie caught up and overtook you by some distance.

OS and versions

jasonw4331 commented 5 years ago

Would this apply to player damage like if a player fell in lava, then disconnected. Would the player take the damage before they could move?

dktapps commented 5 years ago

The player is not able to move during this time. There is a bug where they may die before spawning because noDamageTicks is not set until the player spawns.