diff --git a/1.4/Assemblies/PerformanceFish.dll b/1.4/Assemblies/PerformanceFish.dll index b95efb2..70e6e20 100644 Binary files a/1.4/Assemblies/PerformanceFish.dll and b/1.4/Assemblies/PerformanceFish.dll differ diff --git a/1.4/Assemblies/PerformanceFish.pdb b/1.4/Assemblies/PerformanceFish.pdb index 63959a9..cb17d29 100644 Binary files a/1.4/Assemblies/PerformanceFish.pdb and b/1.4/Assemblies/PerformanceFish.pdb differ diff --git a/1.5/Assemblies/PerformanceFish.dll b/1.5/Assemblies/PerformanceFish.dll index 3cff9e8..8d5829b 100644 Binary files a/1.5/Assemblies/PerformanceFish.dll and b/1.5/Assemblies/PerformanceFish.dll differ diff --git a/1.5/Assemblies/PerformanceFish.pdb b/1.5/Assemblies/PerformanceFish.pdb index 6f1a4bc..f88e636 100644 Binary files a/1.5/Assemblies/PerformanceFish.pdb and b/1.5/Assemblies/PerformanceFish.pdb differ diff --git a/Source/PerformanceFish/Hauling/StoreUtilityPrepatches.cs b/Source/PerformanceFish/Hauling/StoreUtilityPrepatches.cs index 75b259c..0b29755 100644 --- a/Source/PerformanceFish/Hauling/StoreUtilityPrepatches.cs +++ b/Source/PerformanceFish/Hauling/StoreUtilityPrepatches.cs @@ -442,7 +442,8 @@ public sealed class StoreUtilityPrepatches : ClassWithFishPrepatches { public override string? Description { get; } - = "Removes haulables from ListerHaulables if the found best store cell turns out to be the current cell"; + = "Removes haulables from ListerHaulables if the found best store cell turns out to be the current cell. " + + "Need TryFindBestBetterStoreCellFor to work."; public override MethodBase TargetMethodBase { get; } = methodof(StoreUtility.TryFindBestBetterStorageFor); @@ -473,7 +474,7 @@ public sealed class StoreUtilityPrepatches : ClassWithFishPrepatches { if (haulDestination == null) { - if (foundCell != IntVec3.Invalid) // TryFindBestBetterStoreCellForPatch says it's already in best cell + if (StoreCellForPatchActive && foundCell != IntVec3.Invalid) // TryFindBestBetterStoreCellForPatch says it's already in best cell { foundCell = IntVec3.Invalid; TryRemoveFromListerHaulables(t, currentPriority); @@ -500,7 +501,7 @@ public sealed class StoreUtilityPrepatches : ClassWithFishPrepatches private static int _storeCellForPatchActive = int.MaxValue; - private static bool StoreCellForPatchActive + public static bool StoreCellForPatchActive => _storeCellForPatchActive != int.MaxValue ? _storeCellForPatchActive.AsBool() : UpdateStoreCellForPatchActive();