mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Level: fix syncChunkLoad timer not getting stopped when no chunk is returned
This commit is contained in:
parent
6bf9ae0a18
commit
e7adaef2d2
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user