mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Plant growth & scheduled updates!
This commit is contained in:
parent
be9676ebe5
commit
dce9b3140a
17 changed files with 237 additions and 123 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue