Made SendData to specific players safe.

This commit is contained in:
high 2011-06-24 18:11:33 -04:00
parent fb0252ac7c
commit 1698404b30
2 changed files with 13 additions and 7 deletions

View file

@ -336,7 +336,7 @@ namespace TShockAPI
if (ConfigurationManager.DisableBoom && (!args.Player.Group.HasPermission("useexplosives") || !args.Player.Group.HasPermission("ignoregriefdetection")))
{
Main.projectile[ident].type = 0;
NetMessage.SendData((int)PacketTypes.ProjectileNew, args.Player.Index, -1, "", ident);
args.Player.SendData(PacketTypes.ProjectileNew, "", ident);
args.Player.SendMessage("Explosives are disabled!", Color.Red);
args.Player.LastExplosive = DateTime.UtcNow;
//return true;