Support grass mowing
This commit is contained in:
parent
8b4dc3a1a4
commit
cf9240d56d
1 changed files with 7 additions and 0 deletions
|
|
@ -331,6 +331,13 @@ namespace TShockAPI.Handlers
|
||||||
UpdateServerTileState(tile, newTile, TileDataType.Tile);
|
UpdateServerTileState(tile, newTile, TileDataType.Tile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (rectWidth == 1 && rectLength == 1 &&
|
||||||
|
(tile.type == TileID.Grass && newTile.Type == TileID.GolfGrass ||
|
||||||
|
tile.type == TileID.HallowedGrass && newTile.Type == TileID.GolfGrassHallowed))
|
||||||
|
{
|
||||||
|
UpdateServerTileState(tile, newTile, TileDataType.Tile);
|
||||||
|
}
|
||||||
|
|
||||||
if (rectWidth == 1 && rectLength == 1) // Conversion only sends a 1x1 rect
|
if (rectWidth == 1 && rectLength == 1) // Conversion only sends a 1x1 rect
|
||||||
{
|
{
|
||||||
ProcessConversionSpreads(tile, newTile);
|
ProcessConversionSpreads(tile, newTile);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue