@dcl/ecs 7.24.2-27765526737.commit-2cfa673 → 7.24.2-27769863035.commit-2ed854e
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.
|
@@ -115,7 +115,10 @@ export function createUpdateLwwFromCrdt(componentId, timestamps, schema, data, l
|
|
|
115
115
|
if (msg.type === CrdtMessageType.PUT_COMPONENT || msg.type === CrdtMessageType.PUT_COMPONENT_NETWORK) {
|
|
116
116
|
const buf = new ReadWriteByteBuffer(msg.data);
|
|
117
117
|
data.set(entity, schema.deserialize(buf));
|
|
118
|
-
lastSentData
|
|
118
|
+
// do NOT seed lastSentData from an INCOMING message!!!!
|
|
119
|
+
// seeding it from received bytes makes the engine
|
|
120
|
+
// believe it already sent this state, which kills valid re-broadcasting 🧨
|
|
121
|
+
lastSentData.delete(entity);
|
|
119
122
|
}
|
|
120
123
|
else {
|
|
121
124
|
data.delete(entity);
|
|
@@ -122,7 +122,10 @@ function createUpdateLwwFromCrdt(componentId, timestamps, schema, data, lastSent
|
|
|
122
122
|
if (msg.type === crdt_1.CrdtMessageType.PUT_COMPONENT || msg.type === crdt_1.CrdtMessageType.PUT_COMPONENT_NETWORK) {
|
|
123
123
|
const buf = new ByteBuffer_1.ReadWriteByteBuffer(msg.data);
|
|
124
124
|
data.set(entity, schema.deserialize(buf));
|
|
125
|
-
lastSentData
|
|
125
|
+
// do NOT seed lastSentData from an INCOMING message!!!!
|
|
126
|
+
// seeding it from received bytes makes the engine
|
|
127
|
+
// believe it already sent this state, which kills valid re-broadcasting 🧨
|
|
128
|
+
lastSentData.delete(entity);
|
|
126
129
|
}
|
|
127
130
|
else {
|
|
128
131
|
data.delete(entity);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.24.2-
|
|
4
|
+
"version": "7.24.2-27769863035.commit-2ed854e",
|
|
5
5
|
"author": "DCL",
|
|
6
6
|
"bugs": "https://github.com/decentraland/ecs/issues",
|
|
7
7
|
"files": [
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"dependencies": {},
|
|
35
35
|
"types": "./dist/index.d.ts",
|
|
36
36
|
"typings": "./dist/index.d.ts",
|
|
37
|
-
"commit": "
|
|
37
|
+
"commit": "2ed854e41ddb876fe30623418ef5e6d7814b01dd"
|
|
38
38
|
}
|