Replaces while iterators with foreach call

This commit is contained in:
thatsIch
2014-09-29 09:26:35 +02:00
parent 72106c877d
commit b6ec21c70a
10 changed files with 33 additions and 36 deletions
@@ -169,12 +169,12 @@ public class GuiCraftingCPU extends AEBaseGui implements ISortSource
private IAEItemStack findVisualStack(IAEItemStack l)
{
Iterator<IAEItemStack> i = visual.iterator();
while (i.hasNext())
for (IAEItemStack o : visual)
{
IAEItemStack o = i.next();
if ( o.equals( l ) )
{
return o;
}
}
IAEItemStack stack = l.copy();