mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-20 07:29:32 +00:00
o
This commit is contained in:
@@ -491,13 +491,12 @@ public class Mantle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (oldestKey[0] != null) {
|
if (oldestKey[0] != null) {
|
||||||
Long finalOldestKey = oldestKey[0]; // Create a final variable for use in the lambda
|
Long finalOldestKey = oldestKey[0];
|
||||||
hyperLock.withLong(finalOldestKey, () -> {
|
hyperLock.withLong(finalOldestKey, () -> {
|
||||||
toUnload.add(finalOldestKey);
|
toUnload.add(finalOldestKey);
|
||||||
fakeToUnload.addAndGet(1);
|
fakeToUnload.addAndGet(1);
|
||||||
Iris.info("Oldest Tectonic Region " + finalOldestKey + " added to unload");
|
Iris.info("Oldest Tectonic Region " + finalOldestKey + " added to unload");
|
||||||
|
|
||||||
// Remove the region from loadedRegions and lastUse
|
|
||||||
loadedRegions.remove(finalOldestKey);
|
loadedRegions.remove(finalOldestKey);
|
||||||
lastUse.remove(finalOldestKey);
|
lastUse.remove(finalOldestKey);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user