Extract ++ and -- from expressions
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user