mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 20:36:42 +00:00
Using trove collections for most internal stuff, using array access in BlockType and ItemType
This commit is contained in:
@ -49,6 +49,7 @@ 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
|
||||
@ -974,7 +975,7 @@ public class WorldEdit {
|
||||
blockBag.flushChanges();
|
||||
}
|
||||
|
||||
Set<Integer> missingBlocks = editSession.popMissingBlocks();
|
||||
TIntSet missingBlocks = editSession.popMissingBlocks();
|
||||
|
||||
if (missingBlocks.size() > 0) {
|
||||
StringBuilder str = new StringBuilder();
|
||||
@ -982,12 +983,12 @@ public class WorldEdit {
|
||||
int size = missingBlocks.size();
|
||||
int i = 0;
|
||||
|
||||
for (Integer id : missingBlocks) {
|
||||
for (int id : missingBlocks.toArray()) {
|
||||
BlockType type = BlockType.fromID(id);
|
||||
|
||||
str.append(type != null
|
||||
? type.getName() + " (" + id + ")"
|
||||
: id.toString());
|
||||
: id);
|
||||
|
||||
++i;
|
||||
|
||||
|
Reference in New Issue
Block a user