Fix chat over heads, thanks Inanzen for the tip months ago!
This commit is contained in:
parent
f55eaa3caf
commit
0ed25ebbfe
2 changed files with 7 additions and 4 deletions
|
|
@ -966,9 +966,12 @@ namespace TShockAPI
|
|||
}
|
||||
else
|
||||
{
|
||||
Utils.Broadcast(args.Who,
|
||||
String.Format(Config.ChatAboveHeadsFormat, tsplr.Group.Name, tsplr.Group.Prefix, tsplr.Name, tsplr.Group.Suffix,
|
||||
args.Text), tsplr.Group.R, tsplr.Group.G, tsplr.Group.B);
|
||||
string name = Main.player[args.Who].name;
|
||||
Main.player[args.Who].name = String.Format(Config.ChatAboveHeadsFormat, tsplr.Group.Name, tsplr.Group.Prefix, tsplr.Name, tsplr.Group.Suffix);
|
||||
NetMessage.SendData((int)PacketTypes.PlayerInfo, -1, -1, Main.player[args.Who].name, args.Who, 0, 0, 0, 0);
|
||||
Main.player[args.Who].name = name;
|
||||
Utils.Broadcast(args.Who, args.Text, tsplr.Group.R, tsplr.Group.G, tsplr.Group.B);
|
||||
NetMessage.SendData((int)PacketTypes.PlayerInfo, -1, -1, name, args.Who, 0, 0, 0, 0);
|
||||
args.Handled = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue