mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
better chunk unloading, world gen optimizations
This commit is contained in:
parent
e785db588d
commit
5cdfedfc75
16 changed files with 104 additions and 109 deletions
|
|
@ -7,7 +7,7 @@ class Level{
|
|||
* 1 - Infinite
|
||||
* @var integer
|
||||
*/
|
||||
public $generatorType = 0;
|
||||
public $generatorType = 1;
|
||||
|
||||
/**
|
||||
* @var Config
|
||||
|
|
@ -447,7 +447,6 @@ class Level{
|
|||
if(!isset($this->level)){
|
||||
return false;
|
||||
}
|
||||
if(strlen($data) != 16384) console(strlen($data));
|
||||
$this->changedCount[$X . ":" . $Y . ":" . $Z] = 4096;
|
||||
if(ADVANCED_CACHE == true){
|
||||
Cache::remove("world:{$this->name}:$X:$Z");
|
||||
|
|
@ -647,7 +646,7 @@ class Level{
|
|||
if(!isset($this->level)){
|
||||
return false;
|
||||
}
|
||||
return (int) $this->level->getData("seed");
|
||||
return (int) $this->level->getSeed();
|
||||
}
|
||||
|
||||
public function setSeed($seed){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue