Fix player info not actually being sent to other clients
This commit is contained in:
parent
bcebc2efc5
commit
5b8fcfde7b
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue