This commit is contained in:
Jesse Boyd 2016-08-30 18:05:28 +10:00
parent f674c75f1d
commit 523f62787b

View File

@ -155,8 +155,8 @@ public class NMSRelighter {
Collections.sort(chunksList);
int size = chunksList.size();
if (size > DISPATCH_SIZE) {
int amount = (size + 1) / DISPATCH_SIZE;
for (int i = 0; i <= amount; i++) {
int amount = (size + DISPATCH_SIZE - 1) / DISPATCH_SIZE;
for (int i = 0; i < amount; i++) {
int start = i * DISPATCH_SIZE;
int end = Math.min(size, start + DISPATCH_SIZE);
List<RelightSkyEntry> sub = chunksList.subList(start, end);