mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Added real memory and thread usage
This commit is contained in:
@ -77,7 +77,10 @@ class Effect{
|
||||
* @return $this
|
||||
*/
|
||||
public static function getEffect($id){
|
||||
return clone self::$effects[(int) $id];
|
||||
if(isset(self::$effects[$id])){
|
||||
return clone self::$effects[(int) $id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static function getEffectByName($name){
|
||||
@ -184,4 +187,4 @@ class Effect{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user