Level: fix syncChunkLoad timer not getting stopped when no chunk is returned

This commit is contained in:
Dylan K. Taylor 2018-02-20 10:39:23 +00:00
parent 6bf9ae0a18
commit e7adaef2d2

View File

@ -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");
}