Fix player info not actually being sent to other clients

This commit is contained in:
MarioE 2014-06-24 21:05:07 -04:00
parent bcebc2efc5
commit 5b8fcfde7b

View file

@ -1418,6 +1418,7 @@ namespace TShockAPI
args.Player.TPlayer.underShirtColor = underShirtColor;
args.Player.TPlayer.shoeColor = shoeColor;
args.Player.TPlayer.hideVisual = hideVisual;
NetMessage.SendData((int)PacketTypes.PlayerInfo, -1, args.Player.Index, args.Player.Name, args.Player.Index);
return true;
}
if (TShock.Config.MediumcoreOnly && difficulty < 1)
@ -3160,7 +3161,7 @@ namespace TShockAPI
if (Main.npc[id].townNPC && !args.Player.Group.HasPermission(Permissions.hurttownnpc))
{
args.Player.SendErrorMessage("You do not have permission to hurt this NPC.");
args.Player.SendErrorMessage("You do not have permission to hurt this NPC.");
args.Player.SendData(PacketTypes.NpcUpdate, "", id);
return true;
}