Terraria.ModLoader.RecipeEditor.AcceptRecipeGroup C# (CSharp) Method

AcceptRecipeGroup() public method

public AcceptRecipeGroup ( string groupName ) : bool
groupName string
return bool
		public bool AcceptRecipeGroup(string groupName)
		{
			int groupID;
			if (!RecipeGroup.recipeGroupIDs.TryGetValue(groupName, out groupID))
			{
				throw new RecipeException("No recipe group is named " + groupName);
			}
			if (recipe.acceptedGroups.Contains(groupID))
			{
				return false;
			}
			recipe.acceptedGroups.Add(groupID);
			return true;
		}