fix for butchering and stonecutting not working

This commit is contained in:
bbradson
2022-10-25 23:02:55 +02:00
parent 2efa8e466c
commit 39b53f2713
3 changed files with 6 additions and 0 deletions
Binary file not shown.
Binary file not shown.
@@ -436,6 +436,12 @@ public class WorkGiver_DoBillOptimization : ClassWithFishPatches
ref var cacheItem = ref cache._items[cache.IndexOfKey(ingredientCount)]; 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)); cacheItem = new(cacheItem.Key, new(cacheItem.Value.Defs, true));
} }
} }