diff --git a/src/main/java/net/minestom/server/thread/ThreadProvider.java b/src/main/java/net/minestom/server/thread/ThreadProvider.java index dce2183c6..467d2be36 100644 --- a/src/main/java/net/minestom/server/thread/ThreadProvider.java +++ b/src/main/java/net/minestom/server/thread/ThreadProvider.java @@ -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 });