@colyseus/schema 3.0.0-alpha.29 → 3.0.0-alpha.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.mjs +1 -1
- package/build/esm/index.mjs.map +1 -1
- package/build/umd/index.js +1 -1
- package/lib/Metadata.d.ts +0 -3
- package/lib/Metadata.js.map +1 -1
- package/lib/decoder/Decoder.js.map +1 -1
- package/lib/encoder/Encoder.js +1 -1
- package/lib/encoder/Encoder.js.map +1 -1
- package/package.json +1 -1
- package/src/Metadata.ts +0 -1
- package/src/decoder/Decoder.ts +1 -0
- package/src/encoder/Encoder.ts +1 -1
package/build/cjs/index.js
CHANGED
|
@@ -3505,7 +3505,7 @@ class Encoder {
|
|
|
3505
3505
|
}
|
|
3506
3506
|
// skip root `refId` if it's the first change tree
|
|
3507
3507
|
// (unless it "hasView", which will need to revisit the root)
|
|
3508
|
-
if (hasView || changeTree !== rootChangeTree) {
|
|
3508
|
+
if (hasView || it.offset > initialOffset || changeTree !== rootChangeTree) {
|
|
3509
3509
|
buffer[it.offset++] = SWITCH_TO_STRUCTURE & 255;
|
|
3510
3510
|
number$1(buffer, changeTree.refId, it);
|
|
3511
3511
|
}
|