Code cleanup
Added missing this, annotations, etc.
This commit is contained in:
@@ -178,10 +178,10 @@ public class PartImportBus extends PartSharedItemBus implements IInventoryDestin
|
||||
for( int x = 0; x < this.availableSlots(); x++ )
|
||||
{
|
||||
final IAEItemStack ais = this.getConfig().getAEStackInSlot( x );
|
||||
if( ais != null && itemsToSend > 0 )
|
||||
if( ais != null && this.itemsToSend > 0 )
|
||||
{
|
||||
Configured = true;
|
||||
while( itemsToSend > 0 )
|
||||
while( this.itemsToSend > 0 )
|
||||
{
|
||||
if( this.importStuff( myAdaptor, ais, inv, energy, fzMode ) )
|
||||
{
|
||||
@@ -193,7 +193,7 @@ public class PartImportBus extends PartSharedItemBus implements IInventoryDestin
|
||||
|
||||
if( !Configured )
|
||||
{
|
||||
while( itemsToSend > 0 )
|
||||
while( this.itemsToSend > 0 )
|
||||
{
|
||||
if( this.importStuff( myAdaptor, null, inv, energy, fzMode ) )
|
||||
{
|
||||
|
||||
@@ -266,7 +266,7 @@ public class PartLevelEmitter extends PartUpgradeable implements IEnergyWatcherH
|
||||
{
|
||||
if( this.myEnergyWatcher != null )
|
||||
{
|
||||
this.myEnergyWatcher.add( (double) this.reportingValue );
|
||||
this.myEnergyWatcher.add( this.reportingValue );
|
||||
}
|
||||
|
||||
try
|
||||
|
||||
@@ -390,7 +390,7 @@ public class PartCable extends AEBasePart implements IPartCable
|
||||
// a cable bus
|
||||
if( conOnSide || this.getHost().getPart( d ) != null )
|
||||
{
|
||||
ch = ( (int) data.readByte() ) & 0xFF;
|
||||
ch = ( data.readByte() ) & 0xFF;
|
||||
}
|
||||
|
||||
if( ch != this.getChannelsOnSide( d.ordinal() ) )
|
||||
|
||||
@@ -95,7 +95,7 @@ public class PartP2PLight extends PartP2PTunnel<PartP2PLight> implements IGridTi
|
||||
this.opacity = data.readInt();
|
||||
|
||||
this.setOutput( this.lastValue > 0 );
|
||||
return lastValue != oldValue || oldOpacity != this.opacity;
|
||||
return this.lastValue != oldValue || oldOpacity != this.opacity;
|
||||
}
|
||||
|
||||
private boolean doWork()
|
||||
|
||||
@@ -162,7 +162,7 @@ public abstract class PartP2PTunnel<T extends PartP2PTunnel> extends PartBasicSt
|
||||
public void writeToStream( ByteBuf data ) throws IOException
|
||||
{
|
||||
super.writeToStream( data );
|
||||
data.writeShort( getFrequency() );
|
||||
data.writeShort( this.getFrequency() );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -260,7 +260,7 @@ public abstract class AbstractPartMonitor extends AbstractPartDisplay implements
|
||||
return;
|
||||
}
|
||||
|
||||
final IAEItemStack ais = (IAEItemStack) this.getDisplayed();
|
||||
final IAEItemStack ais = this.getDisplayed();
|
||||
|
||||
if( ais == null )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user