HandleSendTileSquare now takes into account Tile's attempt at conversing bandwidth.

This commit is contained in:
Deathmax 2011-12-04 16:09:31 +08:00
parent 28c4f9ed9c
commit fc7f20566e
2 changed files with 10 additions and 1 deletions

View file

@ -221,6 +221,13 @@ namespace TShockAPI
for (int y = 0; y < size; y++)
{
tiles[x, y] = new NetTile(args.Data);
if (tiles[x, y].SameTiles > 0)
{
var num = tiles[x, y].SameTiles;
var tile = tiles[x, y];
for (y++; y < y + num + 1; y++)
tiles[x, y] = tile;
}
}
}