mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Revert botched fix that broke teleports
Revert "Do chunk orders and sending during onUpdate() when we know the player has been constructed" This reverts commit 080b35bf538b5af7e8c4095a762034bd52156967.
This commit is contained in:
parent
a0ef15b15e
commit
c09a5ab301
@ -1679,14 +1679,6 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
return true;
|
||||
}
|
||||
|
||||
if($this->nextChunkOrderRun-- <= 0 or $this->chunk === null){
|
||||
$this->orderChunks();
|
||||
}
|
||||
|
||||
if(count($this->loadQueue) > 0 or !$this->spawned){
|
||||
$this->sendNextChunk();
|
||||
}
|
||||
|
||||
$this->timings->startTiming();
|
||||
|
||||
if($this->spawned){
|
||||
@ -1750,6 +1742,14 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
return;
|
||||
}
|
||||
|
||||
if($this->nextChunkOrderRun-- <= 0 or $this->chunk === null){
|
||||
$this->orderChunks();
|
||||
}
|
||||
|
||||
if(count($this->loadQueue) > 0 or !$this->spawned){
|
||||
$this->sendNextChunk();
|
||||
}
|
||||
|
||||
if(count($this->batchedPackets) > 0){
|
||||
$this->server->batchPackets([$this], $this->batchedPackets, false);
|
||||
$this->batchedPackets = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user