Implemented partial chunk saving on LevelDB (#3078)

This commit is contained in:
Dylan T
2019-08-07 17:39:36 +01:00
committed by GitHub
parent 9598af7683
commit c533f6a0bd
6 changed files with 79 additions and 48 deletions

View File

@ -118,7 +118,7 @@ class PopulationTask extends AsyncTask{
foreach($chunks as $i => $c){
if($c !== null){
$c = $chunks[$i] = $manager->getChunk($c->getX(), $c->getZ());
if(!$c->hasChanged()){
if(!$c->isDirty()){
$chunks[$i] = null;
}
}else{