WorldProviders now accept Loggers

This commit is contained in:
Dylan K. Taylor
2023-05-02 15:41:11 +01:00
parent d0d263191d
commit f29e2f7110
9 changed files with 23 additions and 21 deletions

View File

@ -41,7 +41,8 @@ abstract class BaseWorldProvider implements WorldProvider{
protected BlockStateSerializer $blockStateSerializer;
public function __construct(
protected string $path
protected string $path,
protected \Logger $logger
){
if(!file_exists($path)){
throw new WorldException("World does not exist");