Assignment replaceable with operator assignment
This commit is contained in:
@@ -584,7 +584,7 @@ public class CableBusContainer extends CableBusStorage implements AEMultiTile, I
|
||||
IPart p = this.getPart( ForgeDirection.getOrientation( x ) );
|
||||
if ( p != null )
|
||||
{
|
||||
sides = sides | (1 << x);
|
||||
sides |= ( 1 << x );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -465,12 +465,12 @@ public class PartFormationPlane extends PartUpgradeable implements ICellContaine
|
||||
if ( !Worked )
|
||||
i.onItemUse( is, player, w, x, y, z, side.getOpposite().ordinal(), side.offsetX, side.offsetY, side.offsetZ );
|
||||
|
||||
maxStorage = maxStorage - is.stackSize;
|
||||
maxStorage -= is.stackSize;
|
||||
}
|
||||
else
|
||||
{
|
||||
i.onItemUse( is, player, w, x, y, z, side.getOpposite().ordinal(), side.offsetX, side.offsetY, side.offsetZ );
|
||||
maxStorage = maxStorage - is.stackSize;
|
||||
maxStorage -= is.stackSize;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -161,13 +161,13 @@ public class PartMonitor extends AEBasePart implements IPartMonitor, IPowerChann
|
||||
try
|
||||
{
|
||||
if ( this.proxy.getEnergy().isNetworkPowered() )
|
||||
this.clientFlags = this.clientFlags | this.POWERED_FLAG;
|
||||
this.clientFlags |= this.POWERED_FLAG;
|
||||
|
||||
if ( this.proxy.getPath().isNetworkBooting() )
|
||||
this.clientFlags = this.clientFlags | this.BOOTING_FLAG;
|
||||
this.clientFlags |= this.BOOTING_FLAG;
|
||||
|
||||
if ( this.proxy.getNode().meetsChannelRequirements() )
|
||||
this.clientFlags = this.clientFlags | this.CHANNEL_FLAG;
|
||||
this.clientFlags |= this.CHANNEL_FLAG;
|
||||
}
|
||||
catch (GridAccessException e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user