internal static bool Prefix(GameServer __instance, IncomingMessage message) { if (gsskip) { return(true); } try { if (message.MessageType == 99) { PyNet.receiveMessage(message); } else { gsskip = true; __instance.processIncomingMessage(message); gsskip = false; } } catch (Exception e) { PyTKMod._monitor.Log("Errot processing Message: Type:" + message.MessageType + " Data:" + message.Data, StardewModdingAPI.LogLevel.Error); PyTKMod._monitor.Log(e.Message + ":" + e.StackTrace, StardewModdingAPI.LogLevel.Error); } return(false); }
internal static bool Prefix(IncomingMessage message) { if (message.MessageType == 99) { PyNet.receiveMessage(message); } else { return(true); } return(false); }