Always use {} for statements
This commit is contained in:
@@ -125,9 +125,13 @@ public class TileInterface extends AENetworkInvTile implements IGridTickable, IT
|
||||
private void configureNodeSides()
|
||||
{
|
||||
if( this.pointAt == AEPartLocation.INTERNAL )
|
||||
{
|
||||
this.getProxy().setValidSides( EnumSet.allOf( EnumFacing.class ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
this.getProxy().setValidSides( EnumSet.complementOf( EnumSet.of( this.pointAt.getFacing() ) ) );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -239,8 +239,12 @@ public class TileQuantumBridge extends AENetworkInvTile implements IAEMultiBlock
|
||||
{
|
||||
final EnumSet<EnumFacing> sides = EnumSet.noneOf( EnumFacing.class );
|
||||
for( final AEPartLocation dir : this.getConnections() )
|
||||
{
|
||||
if( dir != AEPartLocation.INTERNAL )
|
||||
{
|
||||
sides.add( dir.getFacing() );
|
||||
}
|
||||
}
|
||||
|
||||
this.getProxy().setValidSides( sides );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user