Remove redundant local variables

This commit is contained in:
thatsIch
2014-10-01 11:34:27 +02:00
parent e1627734b1
commit cd064ec05c
21 changed files with 59 additions and 89 deletions
@@ -81,12 +81,10 @@ public class ShapelessRecipe implements IRecipe, IRecipeBakeable
{
boolean inRecipe = false;
for (Object aRequired : required)
for (Object next : required)
{
boolean match = false;
Object next = aRequired;
if ( next instanceof IIngredient )
{
try
@@ -33,25 +33,24 @@ public class HCCrusher implements ICraftHandler, IWebsiteSerializer
return;
}
}
new RecipeError( "Crusher must have a single input, and single output." );
throw new RecipeError( "Crusher must have a single input, and single output." );
}
@Override
public void register() throws RegistrationError, MissingIngredientError
{
for (ItemStack is : pro_input.getItemStackSet())
for (ItemStack beginStack : pro_input.getItemStackSet())
{
try
{
NBTTagCompound toRegister = new NBTTagCompound();
ItemStack beginStack = is;
ItemStack endStack = pro_output[0].getItemStack();
NBTTagCompound itemFrom = new NBTTagCompound();
NBTTagCompound itemTo = new NBTTagCompound();
beginStack.writeToNBT(itemFrom);
beginStack.writeToNBT( itemFrom );
endStack.writeToNBT(itemTo);
toRegister.setTag("itemFrom", itemFrom);