WorldCreationOptions are now mandatory during creation of worlds

This commit is contained in:
Dylan K. Taylor
2021-04-15 13:54:58 +01:00
parent 203cc7fcef
commit 7b21fc8e9d
6 changed files with 6 additions and 8 deletions

View File

@@ -244,7 +244,7 @@ class WorldManager{
*
* @throws \InvalidArgumentException
*/
public function generateWorld(string $name, ?WorldCreationOptions $options = null, bool $backgroundGeneration = true) : bool{
public function generateWorld(string $name, WorldCreationOptions $options, bool $backgroundGeneration = true) : bool{
if(trim($name) === "" or $this->isWorldGenerated($name)){
return false;
}