don't unload sponge data when a player quits
This commit is contained in:
parent
6dd093fe72
commit
7430013cc3
@ -116,11 +116,6 @@ public class SpongeListener extends AbstractListener {
|
|||||||
try (Timing ignored = plugin.getTimings().time(LPTiming.ON_CLIENT_LEAVE)) {
|
try (Timing ignored = plugin.getTimings().time(LPTiming.ON_CLIENT_LEAVE)) {
|
||||||
final UuidCache cache = plugin.getUuidCache();
|
final UuidCache cache = plugin.getUuidCache();
|
||||||
|
|
||||||
final User user = plugin.getUserManager().get(cache.getUUID(e.getTargetEntity().getUniqueId()));
|
|
||||||
if (user != null) {
|
|
||||||
user.unregisterData();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Unload the user from memory when they disconnect;
|
// Unload the user from memory when they disconnect;
|
||||||
cache.clearCache(e.getTargetEntity().getUniqueId());
|
cache.clearCache(e.getTargetEntity().getUniqueId());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user