fix CraftingTemplate.canCraft always returning false