Bong water can count as a controlled substance, the Minnesota Supreme Court ruled Thursday in a decision that raises the threat of longer sentences for drug smokers who fail to dump the water out of their pipes.

In a 4-3 decision Thursday, the state’s highest court said a person can be prosecuted for a first-degree drug crime for 25 grams or more of bong water that tests positive for a controlled substance.