mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
GeneratorManager: removed unused parameter from getGenerator()
This commit is contained in:
parent
fa93a8d78f
commit
859cdfa5d2
@ -77,12 +77,10 @@ final class GeneratorManager{
|
||||
/**
|
||||
* Returns a class name of a registered Generator matching the given name.
|
||||
*
|
||||
* @param bool $throwOnMissing @deprecated this is for backwards compatibility only
|
||||
*
|
||||
* @return string|null Name of class that extends Generator, or null if no generator is mapped to that name
|
||||
* @phpstan-return class-string<Generator>|null
|
||||
*/
|
||||
public function getGenerator(string $name, bool $throwOnMissing = false) : ?string{
|
||||
public function getGenerator(string $name) : ?string{
|
||||
return $this->list[strtolower($name)] ?? null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user