Remove locale data from locale map when player quit to save mem

This commit is contained in:
Dreeam
2024-06-10 06:15:48 +08:00
parent b513fd37cb
commit d9c89e1dc6
2 changed files with 11 additions and 0 deletions
@@ -60,6 +60,10 @@ public class I18NUtils {
PLAYER_LOCALE.put(uuid, locale);
}
public static void removeLocale(UUID uuid) {
PLAYER_LOCALE.remove(uuid);
}
/**
* Returns the AuthMe messages file language code, by given locale and settings.
* Dreeam - Hard mapping, based on mc1.20.6, 5/29/2024