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