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
@@ -79,13 +79,12 @@ public class ShapelessRecipe implements IRecipe, IRecipeBakeable
if ( slot != null )
{
boolean inRecipe = false;
Iterator<Object> req = required.iterator();
while (req.hasNext())
for (Object aRequired : required)
{
boolean match = false;
Object next = req.next();
Object next = aRequired;
if ( next instanceof IIngredient )
{