9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-20 15:39:31 +00:00
This commit is contained in:
RePixelatedMC
2023-11-29 10:41:48 +01:00
parent de261a38fd
commit 1044f901bd

View File

@@ -491,13 +491,12 @@ public class Mantle {
}
if (oldestKey[0] != null) {
Long finalOldestKey = oldestKey[0]; // Create a final variable for use in the lambda
Long finalOldestKey = oldestKey[0];
hyperLock.withLong(finalOldestKey, () -> {
toUnload.add(finalOldestKey);
fakeToUnload.addAndGet(1);
Iris.info("Oldest Tectonic Region " + finalOldestKey + " added to unload");
// Remove the region from loadedRegions and lastUse
loadedRegions.remove(finalOldestKey);
lastUse.remove(finalOldestKey);
});