mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
quick fixes : enhanced for loop
This commit is contained in:
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)");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user