@dcl/ecs 7.0.6-4137912823.commit-aa69b28 → 7.0.6-4138167187.commit-c9d306a
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.
- package/dist/engine/entity.js +2 -2
- package/package.json +3 -3
package/dist/engine/entity.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createVersionGSet } from '@dcl/crdt/dist/gset';
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
@@ -64,7 +64,7 @@ export function EntityContainer() {
|
|
|
64
64
|
let entityCounter = RESERVED_STATIC_ENTITIES;
|
|
65
65
|
const usedEntities = new Set();
|
|
66
66
|
let toRemoveEntities = [];
|
|
67
|
-
const removedEntities =
|
|
67
|
+
const removedEntities = createVersionGSet();
|
|
68
68
|
function generateNewEntity() {
|
|
69
69
|
if (entityCounter > MAX_ENTITY_NUMBER - 1) {
|
|
70
70
|
throw new Error(`It fails trying to generate an entity out of range ${MAX_ENTITY_NUMBER}.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/ecs",
|
|
3
|
-
"version": "7.0.6-
|
|
3
|
+
"version": "7.0.6-4138167187.commit-c9d306a",
|
|
4
4
|
"description": "Decentraland ECS",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"typings": "./dist/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"ts-proto": "^1.112.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@dcl/crdt": "7.0.6-
|
|
30
|
+
"@dcl/crdt": "7.0.6-4138167187.commit-c9d306a",
|
|
31
31
|
"@dcl/js-runtime": "file:../js-runtime",
|
|
32
32
|
"@dcl/protocol": "1.0.0-4114477251.commit-ccb88d6"
|
|
33
33
|
},
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"displayName": "ECS",
|
|
42
42
|
"tsconfig": "./tsconfig.json"
|
|
43
43
|
},
|
|
44
|
-
"commit": "
|
|
44
|
+
"commit": "c9d306af4a8af8d3cf0f7da983300be92d6b3bc8"
|
|
45
45
|
}
|