Always populate last known name into cache

In theory this should never be an issue but
somehow is?
This commit is contained in:
Josh Roy 2023-08-01 13:02:25 -04:00 committed by MD
parent 7f3b62a180
commit 02ced188c8
1 changed files with 1 additions and 6 deletions

View File

@ -167,18 +167,13 @@ public class ModernUserMap extends CacheLoader<UUID, User> implements IUserMap {
player = new OfflinePlayerStub(uuid, ess.getServer());
user = new User(player, ess);
((OfflinePlayerStub) player).setName(user.getLastAccountName());
uuidCache.updateCache(uuid, null);
uuidCache.updateCache(uuid, user.getLastAccountName());
return user;
}
return null;
}
public void addCachedUser(final User user) {
userCache.put(user.getUUID(), user);
debugLogCache(user);
}
@Override
public Map<String, UUID> getNameCache() {
return uuidCache.getNameCache();