From 5b8fcfde7b84325d6148697fe268905c382cd3e9 Mon Sep 17 00:00:00 2001 From: MarioE Date: Tue, 24 Jun 2014 21:05:07 -0400 Subject: [PATCH] Fix player info not actually being sent to other clients --- TShockAPI/GetDataHandlers.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index b4c0e992..5fee6604 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -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; }