Don't log IndexOutOfRange exceptions in SendTileSquare

This commit is contained in:
Deathmax 2012-01-26 09:50:42 +08:00
parent a8ac9435fd
commit ab55481ddb

View file

@ -316,6 +316,10 @@ namespace TShockAPI
SendData(PacketTypes.TileSendSquare, "", size, (x - num), (y - num)); SendData(PacketTypes.TileSendSquare, "", size, (x - num), (y - num));
return true; return true;
} }
catch (IndexOutOfRangeException)
{
// This is expected if square exceeds array.
}
catch (Exception ex) catch (Exception ex)
{ {
Log.Error(ex.ToString()); Log.Error(ex.ToString());