mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Added a normal Temporal Generator
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
101
src/world/generator/TemporalGenerator.php
Normal file
101
src/world/generator/TemporalGenerator.php
Normal file
File diff suppressed because one or more lines are too long
@@ -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(){
|
||||
|
Reference in New Issue
Block a user