better chunk unloading, world gen optimizations

This commit is contained in:
GameHerobrine 2023-07-01 03:30:45 +03:00
parent e785db588d
commit 5cdfedfc75
16 changed files with 104 additions and 109 deletions

View file

@ -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){