@colyseus/schema 3.0.54 → 3.0.56
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/encoder/Root.js +1 -1
- package/lib/encoder/Root.js.map +1 -1
- package/lib/types/custom/ArraySchema.d.ts +4 -4
- package/lib/types/custom/ArraySchema.js.map +1 -1
- package/package.json +1 -1
- package/src/encoder/Root.ts +1 -1
- package/src/types/custom/ArraySchema.ts +4 -4
package/build/cjs/index.js
CHANGED
|
@@ -4008,7 +4008,7 @@ class Root {
|
|
|
4008
4008
|
changeTree.forEachChild((child, _) => {
|
|
4009
4009
|
if (child.removeParent(changeTree.ref)) {
|
|
4010
4010
|
if ((child.parentChain === undefined || // no parent, remove it
|
|
4011
|
-
(child.parentChain && this.refCount[child.refId] >
|
|
4011
|
+
(child.parentChain && this.refCount[child.refId] > 0) // parent is still in use, but has more than one reference, remove it
|
|
4012
4012
|
)) {
|
|
4013
4013
|
this.remove(child);
|
|
4014
4014
|
}
|