Small changes

This commit is contained in:
EntenKoeniq
2022-03-28 14:49:26 +02:00
parent 214aed68ad
commit a6167528dd
5 changed files with 18 additions and 37 deletions

View File

@ -27,7 +27,7 @@ namespace CoopClient
private void Ontick(object sender, EventArgs e)
{
if (!Main.MainNetworking.IsOnServer())
if (!Main.MainNetworking.IsOnServer() || ScriptEngines == null || ScriptEngines.Count == 0)
{
return;
}
@ -90,6 +90,8 @@ namespace CoopClient
ScriptEngines.ForEach(engine => engine.Script.API.InvokeStop());
ScriptEngines.Clear();
}
ScriptEngines = null;
}
internal static void InvokePlayerConnect(string username, long nethandle)