@nativewrappers/server 0.0.172 → 0.0.174
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.
|
@@ -250,6 +250,14 @@ class NetworkedMap extends Map {
|
|
|
250
250
|
delete(key) {
|
|
251
251
|
$CLIENT: if (GlobalData.IS_CLIENT) throw new Error(`Cannot call 'delete' on client`);
|
|
252
252
|
this.#queuedChanges.push([2 /* Remove */, key]);
|
|
253
|
+
this.#queuedChanges = this.#queuedChanges.filter((v) => {
|
|
254
|
+
if (v[0] !== 2 /* Remove */) {
|
|
255
|
+
if (v[1] === key) {
|
|
256
|
+
return false;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return true;
|
|
260
|
+
});
|
|
253
261
|
return super.delete(key);
|
|
254
262
|
}
|
|
255
263
|
networkTick() {
|