From 390df00966b2c4d587e68d96fa131026bc6896c5 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 29 Jun 2017 10:38:24 +0100 Subject: [PATCH] Remove useless condition --- src/pocketmine/level/Level.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index 337b2e380..3f198c726 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -2410,10 +2410,10 @@ class Level implements ChunkManager, Metadatable{ continue; } $this->timings->syncChunkSendPrepareTimer->startTiming(); + $task = $this->provider->requestChunkTask($x, $z); - if($task !== null){ - $this->server->getScheduler()->scheduleAsyncTask($task); - } + $this->server->getScheduler()->scheduleAsyncTask($task); + $this->timings->syncChunkSendPrepareTimer->stopTiming(); }