diff --git a/Assemblies/SubcoreInfo.dll b/Assemblies/SubcoreInfo.dll index 9b6a6b3..e27fa6d 100644 Binary files a/Assemblies/SubcoreInfo.dll and b/Assemblies/SubcoreInfo.dll differ diff --git a/Source/SubcoreInfo/Harmony/Harmony_Building_SubcoreScanner.cs b/Source/SubcoreInfo/Harmony/Harmony_Building_SubcoreScanner.cs index a631c73..d26fd09 100644 --- a/Source/SubcoreInfo/Harmony/Harmony_Building_SubcoreScanner.cs +++ b/Source/SubcoreInfo/Harmony/Harmony_Building_SubcoreScanner.cs @@ -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(); }