mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Plant growth & scheduled updates!
This commit is contained in:
@ -47,7 +47,8 @@ class WorldGenerator{
|
||||
));
|
||||
$entities = new Config($this->path."entities.yml", CONFIG_YAML);
|
||||
$tiles = new Config($this->path."tiles.yml", CONFIG_YAML);
|
||||
$this->level = new Level($level, $entities, $tiles, $name);
|
||||
$blockUpdates = new Config($this->path."bupdates.yml", CONFIG_YAML);
|
||||
$this->level = new Level($level, $entities, $tiles, $blockUpdates, $name);
|
||||
}
|
||||
|
||||
public function generate(){
|
||||
@ -66,5 +67,9 @@ class WorldGenerator{
|
||||
$this->level->setSpawn($this->generator->getSpawn());
|
||||
$this->level->save(true);
|
||||
}
|
||||
|
||||
public function close(){
|
||||
$this->level->close();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user