Player: remove useless return value from orderChunks()

This commit is contained in:
Dylan K. Taylor 2018-06-11 12:22:46 +01:00
parent 245f5c6bef
commit 137a05c418

View File

@ -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;
} }
/** /**