Revert "Using trove collections for most internal stuff, using array access in BlockType and ItemType"

This reverts commit 410ac65c6a.
This has been causing compatibility issues with Spout. I haven't been ble to reproduce, but until somebody figures out why, this gets to go
This commit is contained in:
zml2008
2012-01-22 01:23:41 -08:00
parent 2aba54a30f
commit 9830d9d326
7 changed files with 48 additions and 88 deletions

View File

@ -49,7 +49,6 @@ import com.sk89q.worldedit.scripting.*;
import com.sk89q.worldedit.tools.*;
import com.sk89q.worldedit.masks.*;
import com.sk89q.worldedit.patterns.*;
import gnu.trove.set.TIntSet;
/**
* This class is the main entry point for WorldEdit. All events are routed
@ -975,7 +974,7 @@ public class WorldEdit {
blockBag.flushChanges();
}
TIntSet missingBlocks = editSession.popMissingBlocks();
Set<Integer> missingBlocks = editSession.popMissingBlocks();
if (missingBlocks.size() > 0) {
StringBuilder str = new StringBuilder();
@ -983,12 +982,12 @@ public class WorldEdit {
int size = missingBlocks.size();
int i = 0;
for (int id : missingBlocks.toArray()) {
for (Integer id : missingBlocks) {
BlockType type = BlockType.fromID(id);
str.append(type != null
? type.getName() + " (" + id + ")"
: id);
: id.toString());
++i;