Reduce scope of variables

This commit is contained in:
thatsIch
2015-09-25 22:52:41 +02:00
parent f4ff28d2a6
commit 0387d30d1c
78 changed files with 174 additions and 218 deletions
@@ -633,10 +633,10 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
private boolean usePlan( int x, IAEItemStack itemStack )
{
boolean changed = false;
InventoryAdaptor adaptor = this.getAdaptor( x );
this.isWorking = true;
boolean changed = false;
try
{
this.destination = this.gridProxy.getStorage().getItemInventory();
@@ -99,10 +99,9 @@ public class MultiCraftingTracker
}
else if( craftingJob != null )
{
ICraftingJob job = null;
try
{
ICraftingJob job = null;
if( craftingJob.isDone() )
{
job = craftingJob.get();
@@ -166,8 +166,8 @@ public class PatternHelper implements ICraftingPatternDetails, Comparable<Patter
throw new IllegalStateException( "No pattern here!" );
}
int offset = 0;
this.condensedInputs = new IAEItemStack[tmpInputs.size()];
int offset = 0;
for( IAEItemStack io : tmpInputs.values() )
{
this.condensedInputs[offset] = io;