From 34994e01dc6c9a36aedaf3ed34c2e5d8691feea3 Mon Sep 17 00:00:00 2001 From: Dale McCoy <21223975+DaleStan@users.noreply.github.com> Date: Sat, 25 May 2024 17:45:08 -0400 Subject: [PATCH] No productivity checks, because Exotic Industries adds prod to everything. --- Yafc.Parser/Data/FactorioDataDeserializer_Context.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Yafc.Parser/Data/FactorioDataDeserializer_Context.cs b/Yafc.Parser/Data/FactorioDataDeserializer_Context.cs index 9ad1157f..5db29e99 100644 --- a/Yafc.Parser/Data/FactorioDataDeserializer_Context.cs +++ b/Yafc.Parser/Data/FactorioDataDeserializer_Context.cs @@ -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().Any(c => c.moduleSlots > 0 && c.allowedEffects.HasFlag(AllowedEffects.Productivity)) && unpacking.IsProductivityAllowed()) - || (packing.crafters.OfType().Any(c => c.moduleSlots > 0 && c.allowedEffects.HasFlag(AllowedEffects.Productivity)) && packing.IsProductivityAllowed())) { - return false; - } - return true;