Fixed async light population producing garbage when generator isn't registered, closes #2488

This commit is contained in:
Dylan K. Taylor
2018-10-24 15:48:40 +01:00
parent 196cf8a68d
commit 09985c5763
2 changed files with 8 additions and 0 deletions

View File

@ -330,6 +330,10 @@ class BlockFactory{
}
}
public static function isInit() : bool{
return self::$fullList !== null;
}
/**
* Registers a block type into the index. Plugins may use this method to register new block types or override
* existing ones.