@colyseus/schema 3.0.60 → 3.0.62

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.
@@ -2744,6 +2744,9 @@ class MapSchema {
2744
2744
  return this.$items.get(key);
2745
2745
  }
2746
2746
  delete(key) {
2747
+ if (!this.$items.has(key)) {
2748
+ return false;
2749
+ }
2747
2750
  const index = this[$changes].indexes[key];
2748
2751
  this.deletedItems[index] = this[$changes].delete(index);
2749
2752
  return this.$items.delete(key);