mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 20:36:42 +00:00
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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user