Merge pull request #218 from thatsIch/localvars

Remove redundant local variables
This commit is contained in:
Chris
2014-10-01 20:23:56 -07:00
21 changed files with 58 additions and 88 deletions
@@ -80,12 +80,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
@@ -39,19 +39,18 @@ public class HCCrusher implements ICraftHandler, IWebsiteSerializer
@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);