Random Improvements and Fixes

This commit is contained in:
Zidonuke 2011-12-20 03:31:47 -05:00
parent 0ac0dd02f8
commit 82fb69f9d4
5 changed files with 31 additions and 28 deletions

View file

@ -262,7 +262,8 @@ namespace TShockAPI
{
try
{
SendData(PacketTypes.TileSendSquare, "", size, (x - (size / 2)), (y - (size / 2)));
int num = (size - 1) / 2;
SendData(PacketTypes.TileSendSquare, "", size, (float)(x - num), (float)(y - num));
return true;
}
catch (Exception ex)