Fixed Recipes not reloading on cmd

This commit is contained in:
Sn0wStorm
2013-09-05 18:46:33 +02:00
parent a466593920
commit 8ab8fe91a6
4 changed files with 44 additions and 28 deletions
-10
View File
@@ -38,16 +38,6 @@ public class BIngredients {
lastId++;
}
//returns the recipe with the given name
public static BRecipe getRecipeByName(String name) {
for (BRecipe recipe : recipes) {
if (recipe.getName(5).equalsIgnoreCase(name)) {
return recipe;
}
}
return null;
}
// Add an ingredient to this
public void add(Material ingredient) {
if (ingredients.containsKey(ingredient)) {