Compression tweak

This commit is contained in:
Jesse Boyd 2016-06-21 17:03:43 +10:00
parent 8555276a78
commit 52024b4c2e
2 changed files with 12 additions and 4 deletions

View File

@ -9,7 +9,7 @@ import com.sk89q.worldedit.EditSession;
public class BukkitMain_110 extends ABukkitMain {
@Override
public BukkitQueue_0 getQueue(String world) {
return new com.boydti.fawe.bukkit.v1_10.BukkitQueue_1_10(world);
return new BukkitQueue_1_10(world);
// return new BukkitQueue_All(world);
}

View File

@ -19,14 +19,19 @@
package com.sk89q.worldedit.regions;
import com.sk89q.worldedit.*;
import com.boydti.fawe.config.Settings;
import com.sk89q.worldedit.BlockVector;
import com.sk89q.worldedit.BlockVector2D;
import com.sk89q.worldedit.LocalWorld;
import com.sk89q.worldedit.Vector;
import com.sk89q.worldedit.Vector2D;
import com.sk89q.worldedit.world.World;
import com.sk89q.worldedit.world.storage.ChunkStore;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
@ -343,6 +348,9 @@ public class CuboidRegion extends AbstractRegion implements FlatRegion {
@Override
public Iterator<BlockVector> iterator() {
if (Settings.COMPRESSION_LEVEL == 9) {
return iterator_old();
}
final BlockVector v = new BlockVector(0,0,0);
return new Iterator<BlockVector>() {
private Vector min = getMinimumPoint();