private void ClassifyStation() { Log("ClassifyStation"); ModuleDockingNode node = this.part.FindModuleImplementing <ModuleDockingNode>(); var otherNode = node.FindOtherNode(); if (otherNode == null) { otherNode = node.otherNode; } if (otherNode == null) { Log("Not Docked"); } else { Log(otherNode.part.partName); stationDockingPort = otherNode.part; //if this part's parent is othernode part then the station is the parent if (this.part.parent != null && this.part.parent == otherNode.part) { stationIsParent = true; } //if the other part's parent is this part then the station is a child if (otherNode.part.parent != null && otherNode.part.parent == this.part) { stationIsParent = false; } } }