fix: no JSON
This commit is contained in:
parent
92286a42ef
commit
02905ba1e2
|
@ -20,7 +20,7 @@ export default function EcsComponent() {
|
|||
delete updatedEntities[id];
|
||||
}
|
||||
else {
|
||||
updatedEntities[id] = ecs.get(parseInt(id)).toJSON();
|
||||
updatedEntities[id] = ecs.get(parseInt(id));
|
||||
if (updatedEntities[id].MainEntity) {
|
||||
setMainEntity(ecs.get(parseInt(id)));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user