Skip to content

Commit

Permalink
No productivity checks, because Exotic Industries adds prod to everyt…
Browse files Browse the repository at this point in the history
…hing.
  • Loading branch information
DaleStan committed Jun 2, 2024
1 parent 3d3a431 commit 34994e0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Yafc.Parser/Data/FactorioDataDeserializer_Context.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,6 @@ private static bool AreInverseRecipes(Recipe packing, Recipe unpacking) {
return false;
}

// Some mods add productivity permissions to the recipes, but not to the crafters; still allow these to be matched as inverses.
// TODO: Consider removing this check entirely?
if ((unpacking.crafters.OfType<EntityWithModules>().Any(c => c.moduleSlots > 0 && c.allowedEffects.HasFlag(AllowedEffects.Productivity)) && unpacking.IsProductivityAllowed())
|| (packing.crafters.OfType<EntityWithModules>().Any(c => c.moduleSlots > 0 && c.allowedEffects.HasFlag(AllowedEffects.Productivity)) && packing.IsProductivityAllowed())) {
return false;
}

return true;


Expand Down

0 comments on commit 34994e0

Please sign in to comment.