Merge pull request #182 from thatsIch/While

Replaces while iterators with foreach call
This commit is contained in:
Chris
2014-09-29 14:10:03 -07:00
10 changed files with 33 additions and 36 deletions
+3 -3
View File
@@ -209,12 +209,12 @@ public class CraftingGridCache implements ICraftingGrid, ICraftingProviderHelper
if ( machine instanceof ICraftingRequester )
{
Iterator<CraftingLinkNexus> nex = links.values().iterator();
while (nex.hasNext())
for (CraftingLinkNexus n : links.values())
{
CraftingLinkNexus n = nex.next();
if ( n.isMachine( machine ) )
{
n.removeNode();
}
}
}