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:
parent
401e738950
commit
af99c4cb8d
1 changed files with 1 additions and 1 deletions
|
|
@ -1311,7 +1311,7 @@ namespace TShockAPI
|
||||||
/// <returns>true if the tile square was sent successfully, else false</returns>
|
/// <returns>true if the tile square was sent successfully, else false</returns>
|
||||||
public virtual bool SendTileSquare(int x, int y, int size = 10)
|
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>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue