9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-30 20:39:21 +00:00

give hyperLock a purpose again

This commit is contained in:
CrazyDev22
2023-12-21 22:36:05 +01:00
parent 650d38e212
commit 1a786fb418

View File

@@ -451,8 +451,8 @@ public class Mantle {
List<Future<?>> futures = new ArrayList<>();
ExecutorService service = Executors.newFixedThreadPool(dynamicThreads.get());
for (Long id : new ArrayList<>(toUnload)) {
hyperLock.withLong(id, () ->
futures.add(service.submit(() -> {
futures.add(service.submit(() ->
hyperLock.withLong(id, () -> {
TectonicPlate m = loadedRegions.get(id);
if (m != null) {
try {