mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
Player: Reset spawn chunk send count if teleporting pre-spawn
This commit is contained in:
parent
b2249f93c0
commit
4ae3fd7734
@ -3923,6 +3923,9 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
|
|
||||||
$this->resetFallDistance();
|
$this->resetFallDistance();
|
||||||
$this->nextChunkOrderRun = 0;
|
$this->nextChunkOrderRun = 0;
|
||||||
|
if($this->spawnChunkLoadCount !== -1){
|
||||||
|
$this->spawnChunkLoadCount = 0;
|
||||||
|
}
|
||||||
$this->stopSleep();
|
$this->stopSleep();
|
||||||
|
|
||||||
//TODO: workaround for player last pos not getting updated
|
//TODO: workaround for player last pos not getting updated
|
||||||
|
Loading…
x
Reference in New Issue
Block a user