pre alloc chunk header

This commit is contained in:
Holly Stubbs 2021-08-27 00:15:02 +01:00
parent 0c50e5e7ef
commit 5bf2e81406

View file

@ -50,7 +50,7 @@ function generateChunk() {
}
function doChunk(chunk) {
const writer = new bufferStuff.Writer();
const writer = new bufferStuff.Writer(18);
writer.writeByte(0x33); // Chunk
writer.writeInt(chunk[0] << 4); // Chunk X