I've got a problem with one of the files in my mod. I've tried to add the special arrows fired from the Shadowflame Bow as an actual, craftable item, which wasn't hard as the projectile already exists in-game.
However, when I tried to make an "Endless Quiver"-style item for these new arrows, an error occured, specifically error CS0117. The code that causes the error is as follows
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModItem.ShadowflameArrow, 4000);
recipe.AddTile(TileID.CrystalBall);
recipe.SetResult(this);
recipe.AddRecipe();
Specifically, the AddIngredient line is the one causing the error. Any advice on how to fix this?