Added a normal Temporal Generator

This commit is contained in:
Shoghi Cervantes
2013-06-04 22:31:34 +02:00
parent 8bf10c523e
commit a830555d90
7 changed files with 120 additions and 4 deletions

View File

@@ -383,6 +383,10 @@ class Level{
return (int) $this->level->getData("seed");
}
public function setSeed($seed){
$this->level->setData("seed", (int) $seed);
}
public function scheduleBlockUpdate(Position $pos, $delay, $type = BLOCK_UPDATE_SCHEDULED){
return $this->server->api->block->scheduleBlockUpdate($pos, $delay, $type);
}

File diff suppressed because one or more lines are too long

View File

@@ -65,7 +65,7 @@ class WorldGenerator{
console("[NOTICE] Populating level");
$this->generator->populateLevel();
$this->level->setSpawn($this->generator->getSpawn());
$this->level->save(true);
$this->level->save(true, true);
}
public function close(){