mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2025-02-17 21:11:26 +01:00
Fixes #269
This commit is contained in:
parent
f674c75f1d
commit
523f62787b
@ -155,8 +155,8 @@ public class NMSRelighter {
|
|||||||
Collections.sort(chunksList);
|
Collections.sort(chunksList);
|
||||||
int size = chunksList.size();
|
int size = chunksList.size();
|
||||||
if (size > DISPATCH_SIZE) {
|
if (size > DISPATCH_SIZE) {
|
||||||
int amount = (size + 1) / DISPATCH_SIZE;
|
int amount = (size + DISPATCH_SIZE - 1) / DISPATCH_SIZE;
|
||||||
for (int i = 0; i <= amount; i++) {
|
for (int i = 0; i < amount; i++) {
|
||||||
int start = i * DISPATCH_SIZE;
|
int start = i * DISPATCH_SIZE;
|
||||||
int end = Math.min(size, start + DISPATCH_SIZE);
|
int end = Math.min(size, start + DISPATCH_SIZE);
|
||||||
List<RelightSkyEntry> sub = chunksList.subList(start, end);
|
List<RelightSkyEntry> sub = chunksList.subList(start, end);
|
||||||
|
Loading…
Reference in New Issue
Block a user