younata/FuelTransferModule — pull request #11 by Majiir (2012-10-15 22:10:25+00:00)
Title: Fixed `FuelTank` and `RCSFuelTank` part type checking

The `FuelTransferCore.transferFuel()` method used this rather unconventional way of checking types:

if (p.GetType() == typeof(FuelTank)) { return true; }

This is an error because some parts may in fact extend the type (`FuelTank`) in question. In particular, MajiirKerbalLib extends both affected classes, and so the unforgiving exactness of the type check was causing problems. This pull uses [the C# `is` keyword](http://msdn.microsoft.com/en-us/library/scekt9xw%28v=vs.100%29.aspx), which is the appropriate way to check for types.