From f8585adc79842b11255c6bb4eae910d95ed0cf63 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Sat, 18 Aug 2018 15:27:26 +1000 Subject: [PATCH] Remove debug code --- .../java/com/sk89q/worldedit/bukkit/BukkitPlayer.java | 1 - .../sk89q/worldedit/internal/cui/ServerCUIHandler.java | 8 ++++---- 2 files changed, 4 insertions(+), 5 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 f21b8a340..852d95739 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 @@ -243,7 +243,6 @@ public class BukkitPlayer extends AbstractPlayerActor { @Override public void sendFakeBlock(Vector pos, BlockStateHolder block) { - System.out.println("Setting " + (block == null ? "reset" : block.getAsString()) + " as " + pos.toString()); Location loc = new Location(player.getWorld(), pos.getX(), pos.getY(), pos.getZ()); if (block == null) { player.sendBlockChange(loc, player.getWorld().getBlockAt(loc).getBlockData()); diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/cui/ServerCUIHandler.java b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/cui/ServerCUIHandler.java index 7535041e0..af63bebe0 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/internal/cui/ServerCUIHandler.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/internal/cui/ServerCUIHandler.java @@ -127,10 +127,10 @@ public class ServerCUIHandler { posY -= y; posZ -= z; -// if (Math.abs(posX) > 32 || Math.abs(posY) > 32 || Math.abs(posZ) > 32) { -// // Structure blocks have a limit -// return null; -// } + if (Math.abs(posX) > 32 || Math.abs(posY) > 32 || Math.abs(posZ) > 32) { + // Structure blocks have a limit + return null; + } structureTag.put("name", new StringTag("worldedit:" + player.getName())); structureTag.put("author", new StringTag(player.getName()));