From 4929e5dd1851339e2e7e827d9815fdc25574c07b Mon Sep 17 00:00:00 2001 From: drtshock Date: Mon, 20 Oct 2014 12:06:47 -0500 Subject: [PATCH] Limit block changes sent in seechunk to prevent client freezing. Use prettier blocks. --- src/main/java/com/massivecraft/factions/cmd/CmdSeeChunk.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdSeeChunk.java b/src/main/java/com/massivecraft/factions/cmd/CmdSeeChunk.java index 945d7934..1201e72f 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdSeeChunk.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdSeeChunk.java @@ -52,10 +52,10 @@ public class CmdSeeChunk extends FCommand { @SuppressWarnings("deprecation") public static void showPillar(Player player, World world, int blockX, int blockZ) { - for (int blockY = 0; blockY < world.getMaxHeight(); blockY++) { + for (int blockY = 0; blockY < player.getLocation().getBlockY() + 30; blockY++) { Location loc = new Location(world, blockX, blockY, blockZ); if (loc.getBlock().getType() != Material.AIR) continue; - int typeId = blockY % 5 == 0 ? Material.GLOWSTONE.getId() : Material.GLASS.getId(); + int typeId = blockY % 5 == 0 ? Material.REDSTONE_LAMP_ON.getId() : Material.STAINED_GLASS.getId(); VisualizeUtil.addLocation(player, loc, typeId); } }