Crash the generator when encountering invalid presets

this is a partial fix for #2717, but still not ideal because it'll spam whenever a chunk is attempted to be generated. However, fixing this properly requires potentially breaking API changes.
This commit is contained in:
Dylan K. Taylor
2019-01-30 12:29:04 +00:00
parent eebd90ec42
commit 331ae5498f
6 changed files with 73 additions and 5 deletions

View File

@@ -58,6 +58,11 @@ abstract class Generator{
/** @var Random */
protected $random;
/**
* @param array $settings
*
* @throws InvalidGeneratorOptionsException
*/
abstract public function __construct(array $settings = []);