Add config option to allow cutable and breakable tiles to be cut or broken by users with no permissions etc.

This commit is contained in:
Zack Piispanen 2013-11-07 05:43:31 -05:00
parent 691204f319
commit 55f969f250
2 changed files with 7 additions and 0 deletions

View file

@ -1948,6 +1948,11 @@ namespace TShockAPI
}
}
if (TShock.Config.AllowCutTilesAndBreakables && (Main.tileCut[Main.tile[tileX, tileY].type] || breakableTiles.Contains(Main.tile[tileX, tileY].type)))
{
return false;
}
if (TShock.CheckIgnores(args.Player))
{
args.Player.SendTileSquare(tileX, tileY, 4);