Fix an issue that causes client crash after receiving long text
This commit is contained in:
parent
a026c5809f
commit
58e2b85f59
1 changed files with 7 additions and 2 deletions
|
|
@ -869,8 +869,13 @@ namespace TShockAPI
|
|||
/// <param name="matches">An enumerable list with the matches</param>
|
||||
public void SendMultipleMatchError(TSPlayer ply, IEnumerable<object> matches)
|
||||
{
|
||||
ply.SendErrorMessage("More than one match found: {0}", string.Join(",", matches));
|
||||
ply.SendErrorMessage("Use \"my query\" for items with spaces");
|
||||
ply.SendErrorMessage("More than one match found: ");
|
||||
|
||||
var lines = PaginationTools.BuildLinesFromTerms(matches.ToArray());
|
||||
|
||||
lines.ForEach(ply.SendInfoMessage);
|
||||
|
||||
ply.SendErrorMessage("Use \"my query\" for items with spaces.");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue