A lawsuit filed by a repairman who was injured while working on a client’s yacht has turned on whether the vessel constituted a dwelling or merely a boat.

A Niagara County, N.Y., judge has ruled that the 40-foot boat — nicknamed the Cannonball — in fact served as a second home for its owner and therefore protected him from liability under Labor Law ��240 and 241, which exempt owners of one- and two-family dwellings who do not direct or control the workers they hire.