Reduce scope of variables
This commit is contained in:
@@ -634,10 +634,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();
|
||||
|
||||
@@ -98,10 +98,10 @@ public class MultiCraftingTracker
|
||||
}
|
||||
else if( craftingJob != null )
|
||||
{
|
||||
ICraftingJob job = null;
|
||||
|
||||
try
|
||||
{
|
||||
ICraftingJob job = null;
|
||||
if( craftingJob.isDone() )
|
||||
{
|
||||
job = craftingJob.get();
|
||||
|
||||
@@ -165,8 +165,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;
|
||||
|
||||
Reference in New Issue
Block a user