Reduce scope of variables
This commit is contained in:
@@ -91,9 +91,6 @@ public class ContainerCellWorkbench extends ContainerUpgradeable
|
||||
@Override
|
||||
protected void setupConfig()
|
||||
{
|
||||
int x = 8;
|
||||
int y = 29;
|
||||
int offset = 0;
|
||||
|
||||
IInventory cell = this.upgradeable.getInventoryByName( "cell" );
|
||||
this.addSlotToContainer( new SlotRestrictedInput( SlotRestrictedInput.PlacableItemType.WORKBENCH_CELL, cell, 0, 152, 8, this.invPlayer ) );
|
||||
@@ -102,6 +99,9 @@ public class ContainerCellWorkbench extends ContainerUpgradeable
|
||||
IInventory upgradeInventory = new Upgrades();
|
||||
// null, 3 * 8 );
|
||||
|
||||
int offset = 0;
|
||||
int y = 29;
|
||||
int x = 8;
|
||||
for( int w = 0; w < 7; w++ )
|
||||
{
|
||||
for( int z = 0; z < 9; z++ )
|
||||
|
||||
@@ -216,7 +216,6 @@ public class ContainerCraftConfirm extends AEBaseContainer
|
||||
|
||||
for( IAEItemStack out : plan )
|
||||
{
|
||||
IAEItemStack m = null;
|
||||
|
||||
IAEItemStack o = out.copy();
|
||||
o.reset();
|
||||
@@ -229,6 +228,7 @@ public class ContainerCraftConfirm extends AEBaseContainer
|
||||
IStorageGrid sg = this.getGrid().getCache( IStorageGrid.class );
|
||||
IMEInventory<IAEItemStack> items = sg.getItemInventory();
|
||||
|
||||
IAEItemStack m = null;
|
||||
if( c != null && this.result.isSimulation() )
|
||||
{
|
||||
m = o.copy();
|
||||
|
||||
@@ -152,7 +152,6 @@ public class ContainerInscriber extends ContainerUpgradeable implements IProgres
|
||||
|
||||
if( ( s == this.top && bot != null ) || ( s == this.bottom && top != null ) )
|
||||
{
|
||||
boolean isValid = false;
|
||||
ItemStack otherSlot = null;
|
||||
if( s == this.top )
|
||||
{
|
||||
@@ -171,6 +170,7 @@ public class ContainerInscriber extends ContainerUpgradeable implements IProgres
|
||||
}
|
||||
|
||||
// everything else
|
||||
boolean isValid = false;
|
||||
for( IInscriberRecipe recipe : AEApi.instance().registries().inscriber().getRecipes() )
|
||||
{
|
||||
if( Platform.isSameItemPrecise( recipe.getTopOptional().orNull(), otherSlot ) )
|
||||
|
||||
@@ -74,8 +74,6 @@ public class ContainerLevelEmitter extends ContainerUpgradeable
|
||||
@Override
|
||||
protected void setupConfig()
|
||||
{
|
||||
int x = 80 + 44;
|
||||
int y = 40;
|
||||
|
||||
IInventory upgrades = this.upgradeable.getInventoryByName( "upgrades" );
|
||||
if( this.availableUpgrades() > 0 )
|
||||
@@ -96,6 +94,8 @@ public class ContainerLevelEmitter extends ContainerUpgradeable
|
||||
}
|
||||
|
||||
IInventory inv = this.upgradeable.getInventoryByName( "config" );
|
||||
int y = 40;
|
||||
int x = 80 + 44;
|
||||
this.addSlotToContainer( new SlotFakeTypeOnly( inv, 0, x, y ) );
|
||||
}
|
||||
|
||||
|
||||
@@ -106,10 +106,9 @@ public class ContainerNetworkStatus extends AEBaseContainer
|
||||
this.maxPower = (long) ( 100.0 * eg.getMaxStoredPower() );
|
||||
}
|
||||
|
||||
PacketMEInventoryUpdate piu;
|
||||
try
|
||||
{
|
||||
piu = new PacketMEInventoryUpdate();
|
||||
PacketMEInventoryUpdate piu = new PacketMEInventoryUpdate();
|
||||
|
||||
for( Class<? extends IGridHost> machineClass : this.network.getMachinesClasses() )
|
||||
{
|
||||
|
||||
@@ -133,11 +133,11 @@ public class ContainerUpgradeable extends AEBaseContainer implements IOptionalSl
|
||||
|
||||
protected void setupConfig()
|
||||
{
|
||||
int x = 80;
|
||||
int y = 40;
|
||||
this.setupUpgrades();
|
||||
|
||||
IInventory inv = this.upgradeable.getInventoryByName( "config" );
|
||||
int y = 40;
|
||||
int x = 80;
|
||||
this.addSlotToContainer( new SlotFakeTypeOnly( inv, 0, x, y ) );
|
||||
|
||||
if( this.supportCapacity() )
|
||||
|
||||
Reference in New Issue
Block a user