From 1a786fb418a579bc7851769cdef615f6c4e37749 Mon Sep 17 00:00:00 2001 From: CrazyDev22 Date: Thu, 21 Dec 2023 22:36:05 +0100 Subject: [PATCH] give hyperLock a purpose again --- core/src/main/java/com/volmit/iris/util/mantle/Mantle.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/volmit/iris/util/mantle/Mantle.java b/core/src/main/java/com/volmit/iris/util/mantle/Mantle.java index a26bef786..4d0348343 100644 --- a/core/src/main/java/com/volmit/iris/util/mantle/Mantle.java +++ b/core/src/main/java/com/volmit/iris/util/mantle/Mantle.java @@ -451,8 +451,8 @@ public class Mantle { List> 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 {