Skip to content

Commit

Permalink
Remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Aug 18, 2018
1 parent 7f41961 commit f8585ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Expand Up @@ -243,7 +243,6 @@ public boolean isPersistent() {

@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());
Expand Down
Expand Up @@ -127,10 +127,10 @@ public static BaseBlock createStructureBlock(Player player) {
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()));
Expand Down

0 comments on commit f8585ad

Please sign in to comment.