Reverted, was stopping TSPlayer.All from working. TSPlayer.All should really be a separate class.

This commit is contained in:
high 2011-08-15 19:32:14 -04:00
parent 47e6543371
commit 8e90b34b99

View file

@ -332,7 +332,7 @@ namespace TShockAPI
//Todo: Separate this into a few functions. SendTo, SendToAll, etc
public virtual void SendData(PacketTypes msgType, string text = "", int number = 0, float number2 = 0f, float number3 = 0f, float number4 = 0f, int number5 = 0)
{
if (!RealPlayer || !ConnectionAlive)
if (RealPlayer && !ConnectionAlive)
return;
NetMessage.SendData((int)msgType, Index, -1, text, number, number2, number3, number4, number5);