Rewrite SendRawData to trigger SendBytes hooks
This commit is contained in:
parent
a450bff22f
commit
7af6d72bc3
2 changed files with 4 additions and 5 deletions
|
|
@ -887,12 +887,11 @@ namespace TShockAPI
|
||||||
NetMessage.SendData((int) msgType, Index, -1, text, ply, number2, number3, number4, number5);
|
NetMessage.SendData((int) msgType, Index, -1, text, ply, number2, number3, number4, number5);
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual bool SendRawData(byte[] data)
|
public virtual void SendRawData(byte[] data)
|
||||||
{
|
{
|
||||||
if (!RealPlayer || !ConnectionAlive)
|
if (!RealPlayer || !ConnectionAlive)
|
||||||
return false;
|
return;
|
||||||
|
NetMessage.SendBytes(Netplay.serverSock[Index], data, 0, data.Length, Netplay.serverSock[Index].ServerWriteCallBack, Netplay.serverSock[Index].networkStream);
|
||||||
return TShock.SendBytes(Netplay.serverSock[Index], data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2a967a9d6e736fbd1305a02994e79347b23cae9c
|
Subproject commit 6bac1465ee2dfe7544cb162436f78e3ef1d76bb8
|
||||||
Loading…
Add table
Add a link
Reference in a new issue