pre alloc chunk header
This commit is contained in:
parent
0c50e5e7ef
commit
5bf2e81406
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ function generateChunk() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function doChunk(chunk) {
|
function doChunk(chunk) {
|
||||||
const writer = new bufferStuff.Writer();
|
const writer = new bufferStuff.Writer(18);
|
||||||
|
|
||||||
writer.writeByte(0x33); // Chunk
|
writer.writeByte(0x33); // Chunk
|
||||||
writer.writeInt(chunk[0] << 4); // Chunk X
|
writer.writeInt(chunk[0] << 4); // Chunk X
|
||||||
|
|
Loading…
Reference in a new issue