mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	fixed issue with offset sliders caused by positive to negative values
fixed issue with HAR as a soft dependency stopping resolveapparelgraphics patch from working
This commit is contained in:
		
							parent
							
								
									fa0c4457e8
								
							
						
					
					
						commit
						e5853d18a4
					
				
					 7 changed files with 26 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -139,19 +139,7 @@ namespace Rimworld_Animations {
 | 
			
		|||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	[HarmonyPatch(typeof(PawnGraphicSet), "ResolveApparelGraphics")]
 | 
			
		||||
	public static class HarmonyPatch_ResolveApparelGraphics
 | 
			
		||||
	{
 | 
			
		||||
		public static bool Prefix(ref Pawn ___pawn)
 | 
			
		||||
		{
 | 
			
		||||
 | 
			
		||||
			if (___pawn.TryGetComp<CompBodyAnimator>() != null && ___pawn.TryGetComp<CompBodyAnimator>().isAnimating)
 | 
			
		||||
			{
 | 
			
		||||
				return false;
 | 
			
		||||
			}
 | 
			
		||||
			return true;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/*
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue