mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Check for null genes in VEGeneBloodDef
This commit is contained in:
		
							parent
							
								
									d07d08cc34
								
							
						
					
					
						commit
						b999c82ebd
					
				
					 2 changed files with 1 additions and 1 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -8,7 +8,7 @@ namespace RJW_Menstruation
 | 
			
		|||
    {
 | 
			
		||||
        public static ThingDef VEGeneBloodDef(Pawn pawn)
 | 
			
		||||
        {
 | 
			
		||||
            if (!ModsConfig.BiotechActive) return null;
 | 
			
		||||
            if (!ModsConfig.BiotechActive || pawn.genes == null) return null;
 | 
			
		||||
            foreach(Gene gene in pawn.genes.GenesListForReading.Where(gene => gene.Active))
 | 
			
		||||
            {
 | 
			
		||||
                ThingDef bloodDef = gene.def.GetModExtension<GeneExtension>()?.customBloodThingDef;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue