quick fixes : enhanced for loop

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 59f3b5b72a
commit 83f54f1e97
33 files changed
+74 -96

No files matched your search

@@ -121,8 +121,7 @@ public class RecipeHandlerAlloying extends RecipeHandlerBase {
@Override
public void loadUsageRecipes(FluidStack ingredient) {
for (Iterator<AlloyMix> i = Smeltery.getAlloyList().iterator(); i.hasNext(); ) {
AlloyMix recipe = i.next();
for (AlloyMix recipe : Smeltery.getAlloyList()) {
for (FluidStack liquid : recipe.mixers) {
if (areFluidsEqual(liquid, ingredient) && !recipe.mixers.isEmpty()) {
this.arecipes.add(new CachedAlloyingRecipe(recipe));