M3G4
Official Terrarian
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient("Wood", 10);
recipe.AddTile("Workbench");
recipe.SetResult(this);
recipe.AddRecipe();
error CS1503: Argument 1: cannot convert from 'string' to 'int'
error CS1502: The best overloaded method match for 'Terraria.ModLoader.ModRecipe.AddTile(int)' has some invalid arguments
i know i'm probably just stupid to you guys but please bear with me,what do i have to change to the above code to get rid of these errors?
recipe.AddIngredient("Wood", 10);
recipe.AddTile("Workbench");
recipe.SetResult(this);
recipe.AddRecipe();
error CS1503: Argument 1: cannot convert from 'string' to 'int'
error CS1502: The best overloaded method match for 'Terraria.ModLoader.ModRecipe.AddTile(int)' has some invalid arguments
i know i'm probably just stupid to you guys but please bear with me,what do i have to change to the above code to get rid of these errors?