From e7adaef2d271cc81e22f6025cfed6312d3e3f36d Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 20 Feb 2018 10:39:23 +0000 Subject: [PATCH] Level: fix syncChunkLoad timer not getting stopped when no chunk is returned --- src/pocketmine/level/Level.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index 84c2da690..6075f24ba 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -2721,6 +2721,8 @@ class Level implements ChunkManager, Metadatable{ $this->timings->syncChunkLoadDataTimer->stopTiming(); if($chunk === null){ + $this->timings->syncChunkLoadTimer->stopTiming(); + if($create){ throw new \InvalidStateException("Could not create new Chunk"); }