mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 20:07:09 +00:00
Merge commit 'd83820477fe905a85a4d1fd11bad1dba211f0f4f'
This commit is contained in:
commit
6968a4232e
@ -168,6 +168,9 @@ class TimingsHandler{
|
||||
|
||||
public function stopTiming() : void{
|
||||
if(self::$enabled){
|
||||
if($this->timingDepth === 0){
|
||||
throw new \InvalidStateException("Cannot stop a timer that is not running");
|
||||
}
|
||||
if(--$this->timingDepth !== 0 or $this->start == 0){
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user