Skip to content

Commit e9da116

Browse files
SpottedleafJRoy
andauthored
Fix issue with offline player data (#6284)
Fixes #6277 Totally overlooked the invalidate call here Co-authored-by: JRoy <10731363+JRoy@users.noreply.github.com>
1 parent 81ac6f7 commit e9da116

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Essentials/src/main/java/com/earth2me/essentials/UserData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public final void reset() {
7474

7575
public final void cleanup() {
7676
config.blockingSave();
77-
ess.getUsers().invalidate(getConfigUUID());
77+
ess.getUsers().removeCache(getConfigUUID());
7878
}
7979

8080
@Override

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ public void blockingSave() {
213213
public void invalidate(final UUID uuid) {
214214
userCache.invalidate(uuid);
215215
uuidCache.removeCache(uuid);
216-
onlineUserCache.remove(uuid);
216+
}
217+
218+
public void removeCache(final UUID uuid) {
219+
uuidCache.removeCache(uuid);
217220
}
218221

219222
private File getUserFile(final UUID uuid) {

0 commit comments

Comments
 (0)