public static void DoUpdate() { if (easyAntiCheat == null) { return; } easyAntiCheat.HandleClientUpdates(); if (Network.Net.sv != null && Network.Net.sv.IsConnected()) { EasyAntiCheat.Server.Hydra.Client client; byte[] messageBuffer; int messageLength; while (easyAntiCheat.PopNetworkMessage(out client, out messageBuffer, out messageLength)) { SendToClient(client, messageBuffer, messageLength); } } }
public static void DoUpdate() => easyAntiCheat?.HandleClientUpdates();