Removed Disconnect handling in NetHooks_SendData
This commit is contained in:
parent
0009d77d18
commit
63bf31ded5
2 changed files with 10 additions and 10 deletions
|
|
@ -1379,7 +1379,7 @@ namespace TShockAPI
|
|||
/// <param name="e">e - The SendDataEventArgs object.</param>
|
||||
private void NetHooks_SendData(SendDataEventArgs e)
|
||||
{
|
||||
if (e.MsgId == PacketTypes.Disconnect)
|
||||
/*if (e.MsgId == PacketTypes.Disconnect)
|
||||
{
|
||||
Action<RemoteClient, string> disconnect = (client, str) =>
|
||||
{
|
||||
|
|
@ -1411,7 +1411,7 @@ namespace TShockAPI
|
|||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
else if (e.MsgId == PacketTypes.WorldInfo)
|
||||
else */if (e.MsgId == PacketTypes.WorldInfo)
|
||||
{
|
||||
using (var ms = new MemoryStream())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue