mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixed memory leak in ProfileSaveTask
This commit is contained in:
parent
b8e9269488
commit
5057a8a7a3
@ -6,9 +6,9 @@ Key:
|
||||
= Fix
|
||||
! Change
|
||||
- Removal
|
||||
|
||||
|
||||
Version 1.3.10-dev
|
||||
+
|
||||
= Fixed players never being removed from memory (memory leak)
|
||||
|
||||
Version 1.3.09
|
||||
+ Added compatibility with AntiCheat (Which I highly recommend to prevent cheating)
|
||||
|
@ -15,7 +15,7 @@ public class ProfileSaveTask implements Runnable {
|
||||
playerProfile.save();
|
||||
|
||||
if (!playerProfile.getPlayer().isOnline()) {
|
||||
Users.getProfiles().remove(playerProfile);
|
||||
Users.remove(playerProfile.getPlayerName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user