Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Source/CombatExtended/CombatExtended/AmmoInjector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ThingDef> benchHashSet))
}
if (BenchesByTag.TryGetValue(curTag, out HashSet<ThingDef> benchHashSet))
{
foreach (ThingDef optionBench in benchHashSet)
{
foreach (ThingDef optionBench in benchHashSet)
{
ToggleRecipeOnBench(recipe, optionBench, ammoEnabled);
}
ToggleRecipeOnBench(recipe, optionBench, ammoEnabled);
}
}
ToggleRecipeOnBench(recipe, bench, ammoEnabled);
Expand Down