mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Added a normal Temporal Generator
This commit is contained in:
parent
8bf10c523e
commit
a830555d90
7 changed files with 120 additions and 4 deletions
|
|
@ -100,7 +100,11 @@ class LevelAPI{
|
|||
$generator = $this->server->api->getProperty("generator");
|
||||
$generator = new $generator($options);
|
||||
}else{
|
||||
$generator = new SuperflatGenerator($options);
|
||||
if(strtoupper($this->server->api->getProperty("level-type")) == "FLAT"){
|
||||
$generator = new SuperflatGenerator($options);
|
||||
}else{
|
||||
$generator = new TemporalGenerator($options);
|
||||
}
|
||||
}
|
||||
$gen = new WorldGenerator($generator, $name, $seed === false ? Utils::readInt(Utils::getRandomBytes(4, false)):(int) $seed);
|
||||
$gen->generate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue