fix issues with more than 1 chunks per tick

This commit is contained in:
2024-12-06 19:10:01 +01:00
parent ca190ffbdd
commit af34d7d3df
@@ -52,6 +52,11 @@ public class OperationWork {
}
for (int i = 0; i < chunksPerTick; i++) {
int chunkWorkIndex = chunksLeft.getAndDecrement();
if (chunkWorkIndex < 0) {
this.finished = true;
task.cancel();
return;
}
ChunkWork chunkWork = chunkWorkList.get(chunkWorkIndex);
World world = selection.getWorld();
if (world == null) return;