Fixed STS not being centered.

Inferring from the usage of it, this method was expected by its callers to be a square centered around the given coordinates (x, y), hence this being a fix.
This commit is contained in:
0x3fcf1bbd 2022-01-26 14:17:27 +01:00 committed by GitHub
parent 401e738950
commit af99c4cb8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1311,7 +1311,7 @@ namespace TShockAPI
/// <returns>true if the tile square was sent successfully, else false</returns>
public virtual bool SendTileSquare(int x, int y, int size = 10)
{
return SendTileRect((short)x, (short)y, (byte)size, (byte)size);
return SendTileRect((short)(x-(size/2)), (short)(y-(size/2)), (byte)size, (byte)size);
}
/// <summary>