Merge pull request #218 from thatsIch/localvars
Remove redundant local variables
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user