Merge pull request #182 from thatsIch/While

Replaces while iterators with foreach call
This commit is contained in:
Chris
2014-09-29 14:10:03 -07:00
10 changed files with 33 additions and 36 deletions
@@ -394,11 +394,10 @@ public abstract class AEBaseGui extends GuiContainer
else if ( dbl_whichItem != null )
{
// a replica of the weird broken vanilla feature.
Iterator iterator = this.inventorySlots.inventorySlots.iterator();
while (iterator.hasNext())
for (Object inventorySlot : this.inventorySlots.inventorySlots)
{
Slot targetSlot = (Slot) iterator.next();
Slot targetSlot = (Slot) inventorySlot;
if ( targetSlot != null && targetSlot.canTakeStack( this.mc.thePlayer ) && targetSlot.getHasStack()
&& targetSlot.inventory == slot.inventory && Container.func_94527_a( targetSlot, dbl_whichItem, true ) )