Closed Taranchuk closed 2 years ago
Just out of curiousity, I took a look at the code and it seems that you need to inverse the logic here
https://github.com/Danimineiro/BundleOfTraits/blob/master/src/More%20Traits/More%20Traits/BOTTraitsManager.cs#L182
so:
foreach (Pawn pawn in hashSet.Where(pawn => ShouldSkipFleeingForPawn(pawn)))
becomes
foreach (Pawn pawn in hashSet.Where(pawn => ShouldSkipFleeingForPawn(pawn) == false))
nah it's inside the thing, I moved the Map null check in there, but it should return false instead of true here:
if (pawn?.Map == null || !pawn.Spawned) return true;
Coding at 1 am be like, is all I can say in my defence to that
No you are right, I'm so dumb
Okay, reversed that thingy like you mentioned, I'm really sorry about the bugs, I'll be sleeping now though
Describe the bug After resubbing to the mod to fetch new update, got this error on the same error
Logs https://gist.github.com/a536c466c83ae3d853a8568c2d955317