Replaces while iterators with foreach call
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user