mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
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:
@@ -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)])){
|
||||
|
Reference in New Issue
Block a user