Skip to content

Commit 02ced18

Browse files
JRoymdcfe
authored andcommitted
Always populate last known name into cache
In theory this should never be an issue but somehow is?
1 parent 7f3b62a commit 02ced18

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

Essentials/src/main/java/com/earth2me/essentials/userstorage/ModernUserMap.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,18 +167,13 @@ public User loadUncachedUser(final UUID uuid) {
167167
player = new OfflinePlayerStub(uuid, ess.getServer());
168168
user = new User(player, ess);
169169
((OfflinePlayerStub) player).setName(user.getLastAccountName());
170-
uuidCache.updateCache(uuid, null);
170+
uuidCache.updateCache(uuid, user.getLastAccountName());
171171
return user;
172172
}
173173

174174
return null;
175175
}
176176

177-
public void addCachedUser(final User user) {
178-
userCache.put(user.getUUID(), user);
179-
debugLogCache(user);
180-
}
181-
182177
@Override
183178
public Map<String, UUID> getNameCache() {
184179
return uuidCache.getNameCache();

0 commit comments

Comments
 (0)