Removed Disconnect handling in NetHooks_SendData

This commit is contained in:
White 2015-07-05 12:12:31 +09:30
parent 0009d77d18
commit 63bf31ded5
2 changed files with 10 additions and 10 deletions

View file

@ -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())
{