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
@@ -89,15 +89,15 @@ public class CellInventory implements ICellInventory
// add new pretty stuff...
int x = 0;
Iterator<IAEItemStack> i = cellItems.iterator();
while (i.hasNext())
for (IAEItemStack v : cellItems)
{
IAEItemStack v = i.next();
itemCount += v.getStackSize();
NBTBase c = tagCompound.getTag( ITEM_SLOT_ARR[x] );
if ( c instanceof NBTTagCompound )
{
v.writeToNBT( (NBTTagCompound) c );
}
else
{
NBTTagCompound g = new NBTTagCompound();