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:
parent
24da389050
commit
6359dad213
1 changed files with 6 additions and 1 deletions
|
|
@ -2200,8 +2200,13 @@ namespace TShockAPI
|
||||||
return true;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue