mirror of
https://github.com/YouHaveTrouble/BlockEdit.git
synced 2026-06-29 13:36:19 +00:00
fix issues with more than 1 chunks per tick
This commit is contained in:
@@ -52,6 +52,11 @@ public class OperationWork {
|
|||||||
}
|
}
|
||||||
for (int i = 0; i < chunksPerTick; i++) {
|
for (int i = 0; i < chunksPerTick; i++) {
|
||||||
int chunkWorkIndex = chunksLeft.getAndDecrement();
|
int chunkWorkIndex = chunksLeft.getAndDecrement();
|
||||||
|
if (chunkWorkIndex < 0) {
|
||||||
|
this.finished = true;
|
||||||
|
task.cancel();
|
||||||
|
return;
|
||||||
|
}
|
||||||
ChunkWork chunkWork = chunkWorkList.get(chunkWorkIndex);
|
ChunkWork chunkWork = chunkWorkList.get(chunkWorkIndex);
|
||||||
World world = selection.getWorld();
|
World world = selection.getWorld();
|
||||||
if (world == null) return;
|
if (world == null) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user