pre alloc chunk header
This commit is contained in:
parent
0c50e5e7ef
commit
5bf2e81406
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue