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