public void SetResult(Mod mod, string itemName, int stack = 1)
{
if (mod == null)
{
mod = this.mod;
}
int type = mod.ItemType(itemName);
if (type == 0)
{
string message = "The item " + itemName + " does not exist in the mod " + mod.Name + "." + Environment.NewLine;
message += "If you are trying to use a vanilla item, try removing the first argument.";
throw new RecipeException(message);
}
this.SetResult(type, stack);
}