package protocolsupport.protocol.legacyremapper.chunk;

import protocolsupport.utils.netty.Compressor;

public class EmptyChunk {

	private static final byte[] fake18ChunkDataSky = new byte[8192 + 2048 + 256];
	private static final byte[] fake18ChunkDataNoSky = new byte[8192 + 2048 + 2048 + 256];
	public static byte[] get18ChunkData(boolean hasSkyLight) {
		return hasSkyLight ? fake18ChunkDataSky : fake18ChunkDataNoSky;
	}

	private static final byte[] fakePre18ChunkDataSky = Compressor.compressStatic(new byte[4096 + 2048 + 2048 + 256]);
	private static final byte[] fakePre18ChunkDataNoSky = Compressor.compressStatic(new byte[4096 + 2048 + 2048 + 2048 + 256]);
	public static byte[] getPre18ChunkData(boolean hasSkyLight) {
		return hasSkyLight ? fakePre18ChunkDataSky : fakePre18ChunkDataNoSky;
	}

}

@@ -188,32 +188,39 @@
 te%5B8192 + 2048 +
+ 2048 +
  256%5D;%0A%09private 
@@ -276,39 +276,32 @@
 te%5B8192 + 2048 +
- 2048 +
  256%5D;%0A%09public s
@@ -521,32 +521,39 @@
  + 2048 + 2048 +
+ 2048 +
  256%5D);%0A%09private
@@ -596,17 +596,17 @@
 ataNoSky
- 
+%09
 = Compre
@@ -646,39 +646,32 @@
  + 2048 + 2048 +
- 2048 +
  256%5D);%0A%09public 

Fix empty chunk precached byte arrays