mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +00:00
Fixed players not loading chunks when stuck on a unloaded chunk
This commit is contained in:
parent
2424c8a76c
commit
673b867ee8
@ -1070,6 +1070,9 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
|||||||
$chunk = $this->level->getChunk($this->newPosition->x >> 4, $this->newPosition->z >> 4);
|
$chunk = $this->level->getChunk($this->newPosition->x >> 4, $this->newPosition->z >> 4);
|
||||||
if(!($chunk instanceof FullChunk) or !$chunk->isGenerated()){
|
if(!($chunk instanceof FullChunk) or !$chunk->isGenerated()){
|
||||||
$revert = true;
|
$revert = true;
|
||||||
|
$this->nextChunkOrderRun = 0;
|
||||||
|
}else{
|
||||||
|
$this->chunk = $chunk;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2587,6 +2590,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
|||||||
$this->airTicks = 300;
|
$this->airTicks = 300;
|
||||||
$this->fallDistance = 0;
|
$this->fallDistance = 0;
|
||||||
$this->orderChunks();
|
$this->orderChunks();
|
||||||
|
$this->nextChunkOrderRun = 0;
|
||||||
$this->forceMovement = $pos;
|
$this->forceMovement = $pos;
|
||||||
$this->newPosition = $pos;
|
$this->newPosition = $pos;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user