Fixed the history/queue array lists being iterated in the wrong direction.

This commit is contained in:
sk89q
2010-12-02 09:42:17 -08:00
parent c710e38944
commit 2e77753204
2 changed files with 56 additions and 9 deletions

View File

@ -49,22 +49,22 @@ public class EditSession {
* Stores the original blocks before modification.
*/
private DoubleArrayList<BlockVector,BaseBlock> original =
new DoubleArrayList<BlockVector,BaseBlock>();
new DoubleArrayList<BlockVector,BaseBlock>(true);
/**
* Stores the current blocks.
*/
private DoubleArrayList<BlockVector,BaseBlock> current =
new DoubleArrayList<BlockVector,BaseBlock>();
new DoubleArrayList<BlockVector,BaseBlock>(false);
/**
* Blocks that should be placed before last.
*/
private DoubleArrayList<BlockVector,BaseBlock> queueAfter =
new DoubleArrayList<BlockVector,BaseBlock>();
new DoubleArrayList<BlockVector,BaseBlock>(false);
/**
* Blocks that should be placed last.
*/
private DoubleArrayList<BlockVector,BaseBlock> queueLast =
new DoubleArrayList<BlockVector,BaseBlock>();
new DoubleArrayList<BlockVector,BaseBlock>(false);
/**
* The maximum number of blocks to change at a time. If this number is
* exceeded, a MaxChangedBlocksException exception will be