Fixed TSPlayer All

This commit is contained in:
high 2011-06-24 18:33:02 -04:00
parent 1698404b30
commit f59fc55f61

View file

@ -219,7 +219,7 @@ namespace TShockAPI
public void SendData(PacketTypes msgType, string text = "", int number = 0, float number2 = 0f, float number3 = 0f, float number4 = 0f, int number5 = 0)
{
if (!ConnectionAlive)
if (Index != -1 && !ConnectionAlive)
return;
NetMessage.SendData((int)msgType, Index, -1, text, number, number2, number3, number4, number5);
}