mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 19:34:15 +00:00
Player: remove useless return value from orderChunks()
This commit is contained in:
parent
245f5c6bef
commit
137a05c418
@ -1062,9 +1062,9 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
$this->dataPacket($pk);
|
$this->dataPacket($pk);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function orderChunks(){
|
protected function orderChunks() : void{
|
||||||
if(!$this->isConnected() or $this->viewDistance === -1){
|
if(!$this->isConnected() or $this->viewDistance === -1){
|
||||||
return false;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Timings::$playerChunkOrderTimer->startTiming();
|
Timings::$playerChunkOrderTimer->startTiming();
|
||||||
@ -1149,8 +1149,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
$this->loadQueue = $newOrder;
|
$this->loadQueue = $newOrder;
|
||||||
|
|
||||||
Timings::$playerChunkOrderTimer->stopTiming();
|
Timings::$playerChunkOrderTimer->stopTiming();
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user