Chunk: added DIRTY_FLAGS_ALL and DIRTY_FLAGS_NONE

This commit is contained in:
Dylan K. Taylor
2023-05-29 17:45:19 +01:00
parent a49842278a
commit 5a9cdef40c
2 changed files with 8 additions and 5 deletions

View File

@@ -143,7 +143,7 @@ class FormatConverter{
$thisRound = $start;
foreach($this->oldProvider->getAllChunks(true, $this->logger) as $coords => $loadedChunkData){
[$chunkX, $chunkZ] = $coords;
$new->saveChunk($chunkX, $chunkZ, $loadedChunkData->getData(), ~0);
$new->saveChunk($chunkX, $chunkZ, $loadedChunkData->getData(), Chunk::DIRTY_FLAGS_ALL);
$counter++;
if(($counter % $this->chunksPerProgressUpdate) === 0){
$time = microtime(true);