diff --git a/src/me/ryanhamshire/GriefPrevention/DataStore.java b/src/me/ryanhamshire/GriefPrevention/DataStore.java index ba76edc..5cc5060 100644 --- a/src/me/ryanhamshire/GriefPrevention/DataStore.java +++ b/src/me/ryanhamshire/GriefPrevention/DataStore.java @@ -109,6 +109,12 @@ public abstract class DataStore this.saveClaim(claim); } + //clean up any UUID conversion work + if(UUIDFetcher.lookupCache != null) + { + UUIDFetcher.lookupCache.clear(); + } + GriefPrevention.AddLogEntry("Update finished."); } diff --git a/src/me/ryanhamshire/GriefPrevention/UUIDFetcher.java b/src/me/ryanhamshire/GriefPrevention/UUIDFetcher.java index f027fb5..dfe5477 100644 --- a/src/me/ryanhamshire/GriefPrevention/UUIDFetcher.java +++ b/src/me/ryanhamshire/GriefPrevention/UUIDFetcher.java @@ -26,7 +26,7 @@ class UUIDFetcher { private final boolean rateLimiting; //cache for username -> uuid lookups - private static HashMap lookupCache; + static HashMap lookupCache; public UUIDFetcher(List names, boolean rateLimiting) { this.names = names;