mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-03 18:42:37 +00:00
Merge commit '9232f4509c4b74718bce2d8f33ba71ca74b38d97'
# Conflicts: # resources/vanilla
This commit is contained in:
commit
0050e12515
@ -179,7 +179,10 @@ class TimingsHandler{
|
||||
|
||||
private function internalStopTiming(float $now) : void{
|
||||
if($this->timingDepth === 0){
|
||||
throw new \InvalidStateException("Cannot stop a timer that is not running");
|
||||
//TODO: it would be nice to bail here, but since we'd have to track timing depth across resets
|
||||
//and enable/disable, it would have a performance impact. Therefore, considering the limited
|
||||
//usefulness of bailing here anyway, we don't currently bother.
|
||||
return;
|
||||
}
|
||||
if(--$this->timingDepth !== 0 or $this->start == 0){
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user