Improve multiplayer sync stability

This commit is contained in:
2025-12-14 14:51:46 +01:00
parent 55e3cd57e7
commit dca0140aab
4 changed files with 61 additions and 15 deletions

View File

@@ -110,7 +110,15 @@ namespace KCM
private void OnApplicationQuit()
{
if (server != null && server.IsRunning)
{
new ShowModal
{
title = "Host disconnected",
message = "The host has left the game."
}.SendToAll();
server.Stop();
}
}
private void Preload(KCModHelper helper)