Player: Reset spawn chunk send count if teleporting pre-spawn

This commit is contained in:
Dylan K. Taylor 2020-07-09 12:17:19 +01:00
parent b2249f93c0
commit 4ae3fd7734

View File

@ -3923,6 +3923,9 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$this->resetFallDistance();
$this->nextChunkOrderRun = 0;
if($this->spawnChunkLoadCount !== -1){
$this->spawnChunkLoadCount = 0;
}
$this->stopSleep();
//TODO: workaround for player last pos not getting updated