mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
hopefully replaced spaces with tabs everywhere
This commit is contained in:
parent
ed4f820ff3
commit
89eb7097a3
42 changed files with 324 additions and 324 deletions
|
|
@ -145,11 +145,11 @@ class LevelAPI{
|
|||
if($generator !== false and class_exists($generator)){
|
||||
$generator = new $generator($options);
|
||||
}else{
|
||||
$generator = match (strtoupper($this->server->api->getProperty("level-type"))) {
|
||||
"FLAT" => new SuperflatGenerator($options),
|
||||
"VANILLA" => new VanillaGenerator($options),
|
||||
default => new TemporalGenerator($options),
|
||||
};
|
||||
$generator = match (strtoupper($this->server->api->getProperty("level-type"))) {
|
||||
"FLAT" => new SuperflatGenerator($options),
|
||||
"VANILLA" => new VanillaGenerator($options),
|
||||
default => 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