mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-15 23:26:21 +01:00
Use for-each instead of lambda
This commit is contained in:
parent
ebd17fdf81
commit
91a01a23b6
@ -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
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user