mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-17 07:44:42 +01:00
Force a system gc after the server starts up
This commit is contained in:
@@ -166,12 +166,13 @@ public class GameServer extends KcpServer {
|
||||
this.info.setUp(true);
|
||||
this.info.save();
|
||||
LunarCore.getHttpServer().forceRegionListRefresh();
|
||||
|
||||
// Force a system gc after everything is loaded and started
|
||||
System.gc();
|
||||
|
||||
// Done
|
||||
LunarCore.getLogger().info("Game Server started on " + address.getPort());
|
||||
|
||||
// Anti-seller
|
||||
LunarCore.getLogger().warn("LUNARCORE IS A FREE SOFTWARE. IF YOU PAID FOR IT, YOU HAVE BEEN SCAMMED!");
|
||||
LunarCore.getLogger().warn("LUNARCORE IS A FREE SOFTWARE. IF YOU PAID FOR IT, YOU HAVE BEEN SCAMMED!"); // DO NOT REMOVE. Anti-seller
|
||||
}
|
||||
|
||||
private void onTick() {
|
||||
|
||||
Reference in New Issue
Block a user