diff --git a/SpigotCore_9/src/de/steamwar/techhider/ChunkHider9.java b/SpigotCore_9/src/de/steamwar/techhider/ChunkHider9.java index 2e413db..59e279f 100644 --- a/SpigotCore_9/src/de/steamwar/techhider/ChunkHider9.java +++ b/SpigotCore_9/src/de/steamwar/techhider/ChunkHider9.java @@ -62,7 +62,7 @@ public class ChunkHider9 extends ChunkHider8 { int primaryBitMask = mapChunkBitMask.get(packet); ByteBuf in = Unpooled.wrappedBuffer(mapChunkData.get(packet)); ByteBuf out = Unpooled.buffer(in.readableBytes() + 64); - for(int chunkY = 0; chunkY < p.getWorld().getMaxHeight(); chunkY++) { + for(int chunkY = 0; chunkY < p.getWorld().getMaxHeight()/16; chunkY++) { if(((1 << chunkY) & primaryBitMask) == 0) continue;