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

@ -415,6 +415,7 @@ class Player{
}
}
asort($this->chunksOrder);
arsort($chunkToUnload);
if($this->level->generatorType != 0){
foreach($chunkToUnload as $chunk => $useless){
$chunkI = explode(":", $chunk);