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));
@@ -34,8 +34,7 @@ public class SmelteryDataProvider implements IWailaDataProvider {
if (fls.size() <= 0) {
currenttip.add(SpecialChars.ITALIC + StatCollector.translateToLocal("tconstruct.waila.empty"));
} else {
for (int i = 0; i < fls.size(); i++) {
FluidStack st = fls.get(i);
for (FluidStack st : fls) {
currenttip.add(WailaRegistrar.fluidNameHelper(st) + " (" + st.amount + "mB)");
}
}