Remove unnecessary var

This commit is contained in:
Ellpeck 2015-11-26 22:41:24 +01:00
parent f35779db64
commit 4eb92a4e71

View file

@ -31,7 +31,6 @@ public class CrusherRecipeRegistry{
public static void registerFinally(){ public static void registerFinally(){
ArrayList<String> oresNoResult = new ArrayList<String>(); ArrayList<String> oresNoResult = new ArrayList<String>();
int recipesAdded = 0;
int recipeStartedAt = recipes.size(); int recipeStartedAt = recipes.size();
for(String ore : OreDictionary.getOreNames()){ for(String ore : OreDictionary.getOreNames()){
@ -44,7 +43,6 @@ public class CrusherRecipeRegistry{
if(!hasRecipe(ore)){ if(!hasRecipe(ore)){
if(!OreDictionary.getOres(output, false).isEmpty() && !OreDictionary.getOres(ore, false).isEmpty()){ if(!OreDictionary.getOres(output, false).isEmpty() && !OreDictionary.getOres(ore, false).isEmpty()){
addRecipe(ore, output, theCase.resultAmount); addRecipe(ore, output, theCase.resultAmount);
recipesAdded++;
} }
else{ else{
oresNoResult.add(ore); oresNoResult.add(ore);
@ -63,7 +61,7 @@ public class CrusherRecipeRegistry{
CrusherRecipe recipe = recipes.get(i); CrusherRecipe recipe = recipes.get(i);
addedRecipes.add(recipe.input+" -> "+recipe.outputOneAmount+"x "+recipe.outputOne); addedRecipes.add(recipe.input+" -> "+recipe.outputOneAmount+"x "+recipe.outputOne);
} }
ModUtil.LOGGER.info("Added "+recipesAdded+" Crusher Recipes automatically: "+addedRecipes.toString()); ModUtil.LOGGER.info("Added "+addedRecipes.size()+" Crusher Recipes automatically: "+addedRecipes.toString());
ModUtil.LOGGER.warn("Couldn't add "+oresNoResult.size()+" Crusher Recipes automatically because the inputs were missing outputs: "+oresNoResult.toString()); ModUtil.LOGGER.warn("Couldn't add "+oresNoResult.size()+" Crusher Recipes automatically because the inputs were missing outputs: "+oresNoResult.toString());
} }