Level: Stop unnecessarily initializing the generator on the main thread

this is just slowing down startup times for no good reason.
This commit is contained in:
Dylan K. Taylor
2018-05-31 10:22:44 +01:00
parent 7fce48d38c
commit c493d0e6ac
5 changed files with 13 additions and 19 deletions

View File

@@ -64,7 +64,7 @@ abstract class Generator{
/**
* @param $name
*
* @return Generator
* @return string|Generator Name of class that extends Generator (not an actual Generator object)
*/
public static function getGenerator($name){
if(isset(Generator::$list[$name = strtolower($name)])){