Player: removed useless condition for chunk ordering

This just causes it to attempt to spam chunk orders prior to the player spawning. It won't succeed, because the render distance is zero.

The other time this could occur is when teleporting into an unloaded chunk, but it's not necessary to continually spam chunk orders in that case, especially since chunk orders are done on teleport anyway.
This commit is contained in:
Dylan K. Taylor 2018-03-23 19:48:33 +00:00
parent c464d39401
commit 364d278714

View File

@ -1806,7 +1806,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
return;
}
if($this->nextChunkOrderRun-- <= 0 or $this->chunk === null){
if($this->nextChunkOrderRun-- <= 0){
$this->orderChunks();
}