diff --git a/1.3/Assemblies/PerformanceFish.dll b/1.3/Assemblies/PerformanceFish.dll index bb22a72..45b3fe1 100644 Binary files a/1.3/Assemblies/PerformanceFish.dll and b/1.3/Assemblies/PerformanceFish.dll differ diff --git a/1.4/Assemblies/PerformanceFish.dll b/1.4/Assemblies/PerformanceFish.dll index 8517671..0db9b49 100644 Binary files a/1.4/Assemblies/PerformanceFish.dll and b/1.4/Assemblies/PerformanceFish.dll differ diff --git a/Source/PerformanceFish/JobSystem/WorkGiver_DoBillOptimization.cs b/Source/PerformanceFish/JobSystem/WorkGiver_DoBillOptimization.cs index 19bec33..b050684 100644 --- a/Source/PerformanceFish/JobSystem/WorkGiver_DoBillOptimization.cs +++ b/Source/PerformanceFish/JobSystem/WorkGiver_DoBillOptimization.cs @@ -436,6 +436,12 @@ public class WorkGiver_DoBillOptimization : ClassWithFishPatches ref var cacheItem = ref cache._items[cache.IndexOfKey(ingredientCount)]; + if ((cache.Count == 1 && cacheItem.Value.Defs.Count == 1) + || bill.recipe?.workerCounterClass != typeof(RecipeWorkerCounter)) + { + return; + } + cacheItem = new(cacheItem.Key, new(cacheItem.Value.Defs, true)); } }