AllowCutTilesAndBreakables option works better now.

Herbs, vines, flowers can be cut inside regions if the option is enabled.
Any action that would also break a wall is still ignored.
Closes #1334
This commit is contained in:
White 2016-12-31 12:57:16 +10:30
parent 24da389050
commit 6359dad213

View file

@ -2200,8 +2200,13 @@ namespace TShockAPI
return true;
}
}
if (TShock.Config.AllowCutTilesAndBreakables && Main.tileCut[Main.tile[tileX, tileY].type])
if (TShock.Config.AllowCutTilesAndBreakables && Main.tileCut[tile.type])
{
if (action == EditAction.KillWall)
{
args.Player.SendTileSquare(tileX, tileY, 1);
return true;
}
return false;
}