Use for-each instead of lambda

This commit is contained in:
TheMode 2021-07-15 20:09:13 +02:00
parent ebd17fdf81
commit 91a01a23b6

View File

@ -129,7 +129,7 @@ public abstract class ThreadProvider {
final ReentrantLock lock = thread.getLock();
lock.lock();
chunkEntries.forEach(chunkEntry -> {
for (var chunkEntry : chunkEntries) {
final Chunk chunk = chunkEntry.chunk;
if (!ChunkUtils.isLoaded(chunk))
return;
@ -153,7 +153,7 @@ public abstract class ThreadProvider {
}
}
}
});
}
lock.unlock();
// #acquire() callbacks
});