mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +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();
|
$this->timings->syncChunkLoadDataTimer->stopTiming();
|
||||||
|
|
||||||
if($chunk === null){
|
if($chunk === null){
|
||||||
|
$this->timings->syncChunkLoadTimer->stopTiming();
|
||||||
|
|
||||||
if($create){
|
if($create){
|
||||||
throw new \InvalidStateException("Could not create new Chunk");
|
throw new \InvalidStateException("Could not create new Chunk");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user