Merge pull request #218 from thatsIch/localvars
Remove redundant local variables
This commit is contained in:
@@ -34,9 +34,8 @@ public class ContainerCondenser extends AEBaseContainer implements IProgressProv
|
||||
{
|
||||
double maxStorage = this.condenser.getStorage();
|
||||
double requiredEnergy = this.condenser.getRequiredPower();
|
||||
int maxDisplay = requiredEnergy == 0 ? (int) maxStorage : (int) Math.min( requiredEnergy, maxStorage );
|
||||
|
||||
this.requiredEnergy = maxDisplay;
|
||||
this.requiredEnergy = requiredEnergy == 0 ? (int) maxStorage : (int) Math.min( requiredEnergy, maxStorage );
|
||||
this.storedPower = (int) this.condenser.storedPower;
|
||||
this.output = (CondenserOutput) this.condenser.getConfigManager().getSetting( Settings.CONDENSER_OUTPUT );
|
||||
}
|
||||
|
||||
@@ -52,8 +52,7 @@ public class ContainerUpgradeable extends AEBaseContainer implements IOptionalSl
|
||||
|
||||
if ( te instanceof IPart )
|
||||
{
|
||||
IUpgradeableHost myTile = te;
|
||||
TileEntity mk = myTile.getTile();
|
||||
TileEntity mk = te.getTile();
|
||||
w = mk.getWorldObj();
|
||||
xCoord = mk.xCoord;
|
||||
yCoord = mk.yCoord;
|
||||
|
||||
@@ -198,8 +198,7 @@ public class SlotRestrictedInput extends AppEngSlot
|
||||
case WORKBENCH_CELL:
|
||||
return i.getItem() instanceof ICellWorkbenchItem && ((ICellWorkbenchItem) i.getItem()).isEditable( i );
|
||||
case STORAGE_COMPONENT:
|
||||
boolean isComp = i.getItem() instanceof IStorageComponent && ((IStorageComponent) i.getItem()).isStorageComponent( i );
|
||||
return isComp;
|
||||
return i.getItem() instanceof IStorageComponent && ((IStorageComponent) i.getItem()).isStorageComponent( i );
|
||||
case TRASH:
|
||||
if ( AEApi.instance().registries().cell().isCellHandled( i ) )
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user