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

@ -143,7 +143,7 @@ class LevelDB extends BaseWorldProvider implements WritableWorldProvider{
return file_exists($path . "/level.dat") and is_dir($path . "/db/");
}
public static function generate(string $path, string $name, ?WorldCreationOptions $options = null) : void{
public static function generate(string $path, string $name, WorldCreationOptions $options) : void{
self::checkForLevelDBExtension();
if(!file_exists($path . "/db")){