Skip to content

Commit 32f6efb

Browse files
committed
feat: update codes follow LiteNetLib 2.0 changes
1 parent 0683f59 commit 32f6efb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Scripts/Transports/LiteNetLib/LiteNetLibTransport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public bool ClientSend(byte dataChannel, DeliveryMethod deliveryMethod, NetDataW
8282
{
8383
if (IsClientStarted)
8484
{
85-
Client.FirstPeer.Send(writer, dataChannel, deliveryMethod);
85+
Client.FirstPeer.Send(writer.Data, 0, writer.Length, dataChannel, deliveryMethod);
8686
return true;
8787
}
8888
return false;

0 commit comments

Comments
 (0)