The state Senate and Assembly have both passed a law providing the kind of safety that New Yorkers might not have thought necessary a few years ago but that advances in technology now require.

The law bans making, selling, transporting or possessing 3-D printed guns or other undetectable firearms. This is especially important when it comes to airline travel. As anybody who travels knows very well, the scrutiny of what people bring on an airplane has increased in response to more sophisticated threats.

But it does no good to have people take off their jackets, shoes and belts, remove cameras and laptops and tablets from carry-on luggage, to have everything pass through a detection system if it is possible that there will be something in the bag, something potentially deadly, that will escape scrutiny.

Who could be against that?

We don’t have to guess because we know their names.

When the ban on 3-D guns went up for a vote, the vast majority of legislators in both house were in favor. It passed 53 to 5 in the Senate, 122 to 22 in the Assembly. Even some longtime foes of gun control were in favor of this law, but not everyone.

Voting against the ban were Sen. George Amedore, the Republican from Rotterdam who represents part of Ulster County, and Republican Assemblymen Karl Brabenec of Deerpark, Kieran Lalor of Wappingers Falls and Colin Schmitt of New Windsor.

When it comes to firearms, these are the usual suspects, never seeing the need for any laws offering protection. Usually they hide behind some alleged threat to sportsmen, arguing that if the state bans any type of firearm for any reason or makes it more difficult to obtain a license or permit, it would be the start of a journey down that slippery slope where all guns are banned.

As many a sportsman will verify, there are very many common sense regulations that make owning firearms more safe for everyone. This session, the state Legislature has enacted a series of laws including one “to prevent individuals from accessing firearms, rifles, and shotguns who have been deemed, through judicial process, likely to engage in conduct that would result in serious harm to themselves or others.”

Hard to understand who could be against that, but Amedore, Brabenec, Lalor and Schmitt were.

The majority in Albany has also passed other laws over the objection of these and others, laws that would impose a longer waiting period before someone who has not cleared a background check could purchase a firearm and creating a municipal gun buyback program.

Now these legislators have come out in favor of letting someone use a 3-D printer to make a gun out of parts undetectable by the kinds of screening that we rely on to make air travel safer.

There is no other side to this issue, no question of infringing on the rights of those who use firearms for sport whether that be target practice or hunting.

No, only criminals are in favor of helping these guns be made and sold and circulated. And those criminals have some local allies in Albany.