pre alloc chunk header

This commit is contained in:
Holly Stubbs 2021-08-27 00:15:02 +01:00
parent 0c50e5e7ef
commit 5bf2e81406
1 changed files with 1 additions and 1 deletions

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