reset multiple chunks WvmIP II
This commit is contained in:
1 parent
b8521c8bbf
commit
e549c4df64
1 file changed
+27
-7
+27
-7
@@ -152,12 +152,6 @@ public abstract class ThreadedAnvilChunkStorage_scarpetChunkCreationMixin implem
|
||||
//getting rid of all signs
|
||||
this.chunkHolderListDirty = true;
|
||||
// not needed right now
|
||||
for (ChunkHolder newHolder: createdChunks)
|
||||
{
|
||||
//convert requires a chunk to be unloaded to load entities
|
||||
//loadedChunks.remove(newHolder.getPos().toLong());
|
||||
//convertToFullChunk(newHolder);
|
||||
// running all pending tasks
|
||||
mainThreadExecutor.runTasks(() -> mainThreadExecutor.getTaskCount() == 0);
|
||||
//worldgenExecutor.
|
||||
// save all pending chunks / potentially only one max - ours
|
||||
@@ -166,8 +160,34 @@ public abstract class ThreadedAnvilChunkStorage_scarpetChunkCreationMixin implem
|
||||
{
|
||||
runnable.run();
|
||||
}
|
||||
convertToFullChunk(newHolder);
|
||||
|
||||
for (ChunkStatus status : ChunkStatus.createOrderedList())
|
||||
{
|
||||
CarpetSettings.LOG.error("Creating layer: " + status.getId());
|
||||
if (status == ChunkStatus.LIGHT)
|
||||
{
|
||||
serverLightingProvider.setTaskBatchSize(chunksToConvert.size() + 20);
|
||||
}
|
||||
for (ChunkPos chpos : chunksToConvert)
|
||||
{
|
||||
//if (status==ChunkStatus.LIGHT)
|
||||
//{
|
||||
// serverLightingProvider.tick();
|
||||
//}
|
||||
//CarpetSettings.LOG.error("Creating layer: " + status.getId());
|
||||
world.getChunk(chpos.x, chpos.z, status);
|
||||
//CarpetSettings.LOG.error(" .. done");
|
||||
//if (status==ChunkStatus.LIGHT)
|
||||
//{
|
||||
// serverLightingProvider.tick();
|
||||
//}
|
||||
}
|
||||
if (status == ChunkStatus.LIGHT)
|
||||
{
|
||||
serverLightingProvider.setTaskBatchSize(5);
|
||||
}
|
||||
}
|
||||
|
||||
mainThreadExecutor.runTasks(() -> mainThreadExecutor.getTaskCount() == 0);
|
||||
//worldgenExecutor.
|
||||
// save all pending chunks / potentially only one max - ours
|
||||
|
||||
Reference in new issue
Block a user