Replaced normal for loops with foreach loops which is less error prone when just iterating over collection/array
This commit is contained in:
@@ -575,10 +575,8 @@ public class Platform
|
||||
CraftingManager cm = CraftingManager.getInstance();
|
||||
List<IRecipe> rl = cm.getRecipeList();
|
||||
|
||||
for (int x = 0; x < rl.size(); ++x)
|
||||
for (IRecipe r : rl)
|
||||
{
|
||||
IRecipe r = rl.get( x );
|
||||
|
||||
if ( r.matches( par1InventoryCrafting, par2World ) )
|
||||
{
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user