Here's the fix again.
Moves the check

Thanks for the spot, WareXD.
Merge pull request #8839 from KA101/craftfix3

Crafting fix, take 3