mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 01:39:52 +00:00
TimingsHandler: use weak comparison for stopTiming start check
this could be an int or float, and 0 !== 0.0.
This commit is contained in:
parent
6127a02a8b
commit
b3cfa5a3a0
@ -168,7 +168,7 @@ class TimingsHandler{
|
|||||||
|
|
||||||
public function stopTiming(){
|
public function stopTiming(){
|
||||||
if(self::$enabled){
|
if(self::$enabled){
|
||||||
if(--$this->timingDepth !== 0 or $this->start === 0){
|
if(--$this->timingDepth !== 0 or $this->start == 0){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user