Don't log IndexOutOfRange exceptions in SendTileSquare
This commit is contained in:
parent
a8ac9435fd
commit
ab55481ddb
1 changed files with 19 additions and 15 deletions
|
|
@ -316,6 +316,10 @@ namespace TShockAPI
|
|||
SendData(PacketTypes.TileSendSquare, "", size, (x - num), (y - num));
|
||||
return true;
|
||||
}
|
||||
catch (IndexOutOfRangeException)
|
||||
{
|
||||
// This is expected if square exceeds array.
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex.ToString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue