//in Terraria.WorldGen.CanKillTile after check for tile.active() add
// if(!TileLoader.CanKillTile(i, j, tile.type, ref blockDamaged)) { return false; }
public static bool CanKillTile(int i, int j, int type, ref bool blockDamaged)
{
foreach (GlobalTile globalTile in globalTiles)
{
if (!globalTile.CanKillTile(i, j, type, ref blockDamaged))
{
return(false);
}
}
ModTile modTile = GetTile(type);
if (modTile != null)
{
return(modTile.CanKillTile(i, j, ref blockDamaged));
}
return(true);
}