Skip to content

Commit

Permalink
Switch to closest thing global
Browse files Browse the repository at this point in the history
  • Loading branch information
eth0net committed Jan 30, 2023
1 parent d7ccc58 commit 6fdc284
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified Assemblies/SubcoreInfo.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static bool validator(Thing subcore)
return comp != null && comp.PatternName == null;
}

Thing subcore = GenClosest.ClosestThingReachable(scanner.InteractionCell, scanner.Map, ThingRequest.ForDef(subcoreDef), Verse.AI.PathEndMode.ClosestTouch, TraverseParms.For(TraverseMode.ByPawn), 9999, validator);
Thing subcore = GenClosest.ClosestThing_Global(scanner.InteractionCell, scanner.Map.listerThings.ThingsOfDef(subcoreDef), 9999, validator);

return subcore?.TryGetComp<CompSubcoreInfo>();
}
Expand Down

0 comments on commit 6fdc284

Please sign in to comment.