From 364d278714cd5c2ce01a58bf202164d28eb8b7fd Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 23 Mar 2018 19:48:33 +0000 Subject: [PATCH] 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. --- src/pocketmine/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index 6be5d2ac8..36317af54 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -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(); }