Skip to content

Commit

Permalink
Added Y Level Scanning Boost To See Chunk To Avoid Less Lag For y Coo…
Browse files Browse the repository at this point in the history
…rd Scanning
  • Loading branch information
Driftay committed Nov 7, 2021
1 parent 94fe8a8 commit 710a8fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private void showBorders(Player me) {
}

private void showPillar(Player player, World world, int blockX, int blockZ) {
for (int blockY = 0; blockY < player.getLocation().getBlockY() + 15; blockY++) {
for (int blockY = player.getLocation().getBlockY() - 15; blockY < player.getLocation().getBlockY() + 15; blockY++) {
Location loc = new Location(world, blockX, blockY, blockZ).add(0.5, 0, 0.5);
if (loc.getBlock().getType() != Material.AIR) {
continue;
Expand Down

0 comments on commit 710a8fd

Please sign in to comment.