This commit is contained in:
vis2k 2021-03-09 14:57:41 +08:00
parent 4e71f324c6
commit 8bcc8d29ef

View File

@ -83,7 +83,7 @@ public void Send<T>(T msg, int channelId = Channels.DefaultReliable)
// would check max size and show errors internally. best to do it
// in one place in hlapi.
// => it's important to log errors, so the user knows what went wrong.
protected internal static bool ValidatePacketSize(ArraySegment<byte> segment, int channelId)
protected static bool ValidatePacketSize(ArraySegment<byte> segment, int channelId)
{
if (segment.Count > Transport.activeTransport.GetMaxPacketSize(channelId))
{