Skip to content

Commit

Permalink
Fix Block ESP (MeteorDevelopment#4009)
Browse files Browse the repository at this point in the history
  • Loading branch information
19MisterX98 authored Aug 27, 2023
1 parent ce32561 commit e066654
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import static meteordevelopment.meteorclient.utils.Utils.getRenderDistance;

public class ESPChunk {
private static final BlockPos.Mutable blockPos = new BlockPos.Mutable();

private final int x, z;
public Long2ObjectMap<ESPBlock> blocks;
Expand Down Expand Up @@ -91,6 +90,8 @@ public static ESPChunk searchChunk(Chunk chunk, List<Block> blocks) {
ESPChunk schunk = new ESPChunk(chunk.getPos().x, chunk.getPos().z);
if (schunk.shouldBeDeleted()) return schunk;

BlockPos.Mutable blockPos = new BlockPos.Mutable();

for (int x = chunk.getPos().getStartX(); x <= chunk.getPos().getEndX(); x++) {
for (int z = chunk.getPos().getStartZ(); z <= chunk.getPos().getEndZ(); z++) {
int height = chunk.getHeightmap(Heightmap.Type.WORLD_SURFACE).get(x - chunk.getPos().getStartX(), z - chunk.getPos().getStartZ());
Expand Down

0 comments on commit e066654

Please sign in to comment.