diff --git a/Source/CombatExtended/CombatExtended/AmmoInjector.cs b/Source/CombatExtended/CombatExtended/AmmoInjector.cs index 295117ba41..c9209ee6c6 100755 --- a/Source/CombatExtended/CombatExtended/AmmoInjector.cs +++ b/Source/CombatExtended/CombatExtended/AmmoInjector.cs @@ -203,12 +203,12 @@ public static bool InjectAmmos() Log.Error("Combat Extended :: AmmoInjector trying to inject " + ammoDef.ToString() + " but no crafting bench with defName=" + benchName + " could be found for tag " + curTag); continue; } - if (BenchesByTag.TryGetValue(curTag, out HashSet benchHashSet)) + } + if (BenchesByTag.TryGetValue(curTag, out HashSet benchHashSet)) + { + foreach (ThingDef optionBench in benchHashSet) { - foreach (ThingDef optionBench in benchHashSet) - { - ToggleRecipeOnBench(recipe, optionBench, ammoEnabled); - } + ToggleRecipeOnBench(recipe, optionBench, ammoEnabled); } } ToggleRecipeOnBench(recipe, bench, ammoEnabled);