Merge pull request #182 from thatsIch/While
Replaces while iterators with foreach call
This commit is contained in:
+3
-3
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user