From d603f45063a2cdae754c4bd66001fc14f3b632ba Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 5 May 2019 22:19:13 +1000 Subject: [PATCH] remove debug --- .../main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java | 1 - .../boydti/fawe/beta/implementation/holder/ChunkHolder.java | 4 +--- .../main/java/com/boydti/fawe/jnbt/anvil/BitArray4096.java | 1 - .../src/main/java/com/sk89q/worldedit/EditSession.java | 1 - .../main/java/com/sk89q/worldedit/regions/CuboidRegion.java | 2 +- 5 files changed, 2 insertions(+), 7 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java index 637c61470..2b863c3c4 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java @@ -168,7 +168,6 @@ public class BukkitPlayer extends AbstractPlayerActor { Extent extent = loc.getExtent(); if (extent instanceof World) { org.bukkit.World world = Bukkit.getWorld(((World) extent).getName()); - // System.out.println("Teleport to world " + world); player.teleport(new Location(world, pos.getX(), pos.getY(), pos.getZ(), yaw, pitch)); } diff --git a/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/holder/ChunkHolder.java b/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/holder/ChunkHolder.java index e2284fe51..3a8d1d561 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/holder/ChunkHolder.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/beta/implementation/holder/ChunkHolder.java @@ -46,7 +46,6 @@ public abstract class ChunkHolder implements IChunk, Supplier { if (region != null) { switch (region.getChunkBounds(X, Z, min, max)) { case NONE: - System.out.println("NONE"); return; case FULL: if (min.getY() == 0 && max.getY() == 255) { @@ -58,9 +57,8 @@ public abstract class ChunkHolder implements IChunk, Supplier { default: { int minLayer = min.getY() >> 4; int maxLayer = max.getY() >> 4; - System.out.println("Layers " + minLayer + " | " + maxLayer); block = block.init(X, Z, get); - for (int layer = minLayer; layer < maxLayer; layer++) { + for (int layer = minLayer; layer <= maxLayer; layer++) { if (!get.hasSection(layer) || !filter.appliesLayer(this, layer)) continue; block.filter(get, set, layer, filter, region, min, max); } diff --git a/worldedit-core/src/main/java/com/boydti/fawe/jnbt/anvil/BitArray4096.java b/worldedit-core/src/main/java/com/boydti/fawe/jnbt/anvil/BitArray4096.java index 497059c2f..c590f3138 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/jnbt/anvil/BitArray4096.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/jnbt/anvil/BitArray4096.java @@ -14,7 +14,6 @@ public final class BitArray4096 { maxEntryValue = (1 << bitsPerEntry) - 1; this.longLen = (this.bitsPerEntry * 4096) >> 6; if (buffer.length < longLen) { - System.out.println("Invalid buffer " + buffer.length + " | " + longLen); this.data = new long[longLen]; } else { this.data = buffer; diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java index e1202cf06..880427593 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java @@ -2490,7 +2490,6 @@ public class EditSession extends AbstractDelegateExtent implements HasFaweQueue, * @throws MaxChangedBlocksException thrown if too many blocks are changed */ public int makeSphere(final BlockVector3 pos, final Pattern block, double radiusX, double radiusY, double radiusZ, final boolean filled) { - System.out.println("Make sphere"); radiusX += 0.5; radiusY += 0.5; radiusZ += 0.5; diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/regions/CuboidRegion.java b/worldedit-core/src/main/java/com/sk89q/worldedit/regions/CuboidRegion.java index 34a42ec4d..913285e52 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/regions/CuboidRegion.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/regions/CuboidRegion.java @@ -635,7 +635,7 @@ public class CuboidRegion extends AbstractRegion implements FlatRegion { int maxChunkX = maxX >> 4; if (maxChunkX >= X) { int minChunkZ = minZ >> 4; - if (minChunkZ <= X) { + if (minChunkZ <= Z) { int maxChunkZ = maxZ >> 4; if (maxChunkZ >= Z) { int cx1 = X << 4;