Extract ++ and -- from expressions

This commit is contained in:
thatsIch
2015-03-26 11:07:26 +01:00
parent b31f2df58d
commit 9bf8b4388f
26 changed files with 89 additions and 40 deletions
@@ -44,7 +44,9 @@ public class NonNullArrayIterator<E> implements Iterator<E>
@Override
public E next()
{
return this.g[this.offset++];
E result = this.g[this.offset];
this.offset++;
return result;
}
@Override
@@ -103,7 +103,9 @@ public class LayerISidedInventory extends LayerBase implements ISidedInventory
for (int cSlot = 0; cSlot < slotCount; cSlot++)
{
cSidesList[cSlot] = offsetForLayer;
slots.set( offsetForLayer++, new InvSot( sides, offsetForPart++ ) );
slots.set( offsetForLayer, new InvSot( sides, offsetForPart ) );
offsetForLayer++;
offsetForPart++;
}
}
}