fix: no JSON

This commit is contained in:
cha0s 2024-06-11 01:48:25 -05:00
parent 92286a42ef
commit 02905ba1e2

View File

@ -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)));
}