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