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:
@@ -167,11 +167,12 @@ public class GameServer extends KcpServer {
|
|||||||
this.info.save();
|
this.info.save();
|
||||||
LunarCore.getHttpServer().forceRegionListRefresh();
|
LunarCore.getHttpServer().forceRegionListRefresh();
|
||||||
|
|
||||||
|
// Force a system gc after everything is loaded and started
|
||||||
|
System.gc();
|
||||||
|
|
||||||
// Done
|
// Done
|
||||||
LunarCore.getLogger().info("Game Server started on " + address.getPort());
|
LunarCore.getLogger().info("Game Server started on " + address.getPort());
|
||||||
|
LunarCore.getLogger().warn("LUNARCORE IS A FREE SOFTWARE. IF YOU PAID FOR IT, YOU HAVE BEEN SCAMMED!"); // DO NOT REMOVE. Anti-seller
|
||||||
// Anti-seller
|
|
||||||
LunarCore.getLogger().warn("LUNARCORE IS A FREE SOFTWARE. IF YOU PAID FOR IT, YOU HAVE BEEN SCAMMED!");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onTick() {
|
private void onTick() {
|
||||||
|
|||||||
Reference in New Issue
Block a user