Either permanently attach a long flash hider, muzzle brake, or suppressor (there is no recognised standard for "permanently attached" in New Zealand because there's nothing in the legislation) or attach a longer stock. Those are your options. Or be the test case in court to argue that it should be measured with the stock open. If you do the third option, please get a really good lawyer and make sure you win.
Bookmarks