mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-21 12:32:29 +00:00
Fix memory leak in MTLogger (#26)
This commit is contained in:
1 parent
0b697b40cc
commit
db6a83b2c0
2 files changed
+5
No files matched your search
@@ -38,6 +38,10 @@ public class MTLogger implements ILogger {
|
||||
unprocessed.clear();
|
||||
}
|
||||
|
||||
public void clearPlayers() {
|
||||
players.clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void logCommand(String message) {
|
||||
for (ILogger logger : loggers) {
|
||||
|
||||
@@ -192,5 +192,6 @@ public class MineTweakerMod {
|
||||
public void onServerStopped(FMLServerStoppedEvent ev) {
|
||||
MineTweakerImplementationAPI.onServerStop();
|
||||
MineTweakerImplementationAPI.setScriptProvider(scriptsGlobal);
|
||||
MineTweakerImplementationAPI.logger.clearPlayers();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user