don't unload sponge data when a player quits

This commit is contained in:
Luck
2017-01-20 20:02:42 +00:00
Unverified
parent 6dd093fe72
commit 7430013cc3
@@ -116,11 +116,6 @@ public class SpongeListener extends AbstractListener {
try (Timing ignored = plugin.getTimings().time(LPTiming.ON_CLIENT_LEAVE)) {
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;
cache.clearCache(e.getTargetEntity().getUniqueId());
}