Force a system gc after the server starts up

This commit is contained in:
Melledy
2023-12-14 20:23:58 -08:00
parent e209f09a55
commit bf713d2ddd

View File

@@ -167,11 +167,12 @@ public class GameServer extends KcpServer {
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() {