@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.
@@ -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] > 1) // parent is still in use, but has more than one reference, remove it
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
  }