mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Level saving
This commit is contained in:
parent
78baa237e3
commit
e63677a23d
4 changed files with 39 additions and 38 deletions
|
|
@ -100,7 +100,7 @@ class LevelAPI{
|
|||
$level = new PMFLevel($path."level.pmf");
|
||||
$entities = new Config($path."entities.yml", CONFIG_YAML);
|
||||
$tileEntities = new Config($path."tileEntities.yml", CONFIG_YAML);
|
||||
$this->levels[$name] = new Level($level, $entities, $tileEntities);
|
||||
$this->levels[$name] = new Level($level, $entities, $tileEntities, $name);
|
||||
foreach($entities->getAll() as $entity){
|
||||
if(!isset($entity["id"])){
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue