mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
fixed some names
This commit is contained in:
parent
63ef7c628c
commit
8248088c29
6 changed files with 74 additions and 66 deletions
|
|
@ -1,6 +1,14 @@
|
|||
<?php
|
||||
|
||||
class Level{
|
||||
/**
|
||||
* A generator type.
|
||||
* 0 - Old
|
||||
* 1 - Infinite
|
||||
* @var integer
|
||||
*/
|
||||
public $generatorType = 0;
|
||||
|
||||
/**
|
||||
* @var Config
|
||||
*/
|
||||
|
|
@ -99,7 +107,7 @@ class Level{
|
|||
return $cache;
|
||||
}
|
||||
}*/
|
||||
$gen = true;//!($X > 15 || $X < 0 || $Z > 15 || $Z < 0); //TODO inf Worlds
|
||||
$gen = $this->generatorType === 1 || !($X > 15 || $X < 0 || $Z > 15 || $Z < 0);
|
||||
$orderedIds = "";
|
||||
$orderedData = "";
|
||||
$orderedSkyLight = str_repeat("\x00", 16*16*64);
|
||||
|
|
@ -107,7 +115,7 @@ class Level{
|
|||
$orderedBiomeIds = str_repeat("\x01", 16*16); //all plains, according to PocketMine 1.4 source
|
||||
$orderedBiomeColors = str_repeat("\x00\x85\xb2\x4a", 256); // also PM 1.4
|
||||
$tileEntities = "";
|
||||
$this->level->generateChunk($X, $Z, $this->generator);
|
||||
if($gen)$this->level->generateChunk($X, $Z, $this->generator);
|
||||
if(!$this->level->isChunkLoaded($X, $Z)){
|
||||
$this->level->loadChunk($X, $Z);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue