private void FixGenericBases(Structure building) { if(!building.IsTypeInstance()) return; StructureInstance instance = (StructureInstance)building; instance.FixInheritance(); }