Various mods (in this case, KIS) will trigger editor events before
EditorLogic.RootPart has been set. SortedShipList uses RootPart and thus
will throw an NRE if used before RootPart has been set. Thus check RootPart
instead of the number of parts in SortedShipList (logically the same
effect).
Various mods (in this case, KIS) will trigger editor events before EditorLogic.RootPart has been set. SortedShipList uses RootPart and thus will throw an NRE if used before RootPart has been set. Thus check RootPart instead of the number of parts in SortedShipList (logically the same effect).