fix: resilience
This commit is contained in:
parent
0f08de7872
commit
51a3576bca
|
@ -122,7 +122,10 @@ export default class Ecs {
|
|||
const componentNames = Object.keys(ecs.Components);
|
||||
const {entities, systems} = decoder.decode(view.buffer);
|
||||
for (const system of systems) {
|
||||
ecs.system(system).active = true;
|
||||
const System = ecs.system(system);
|
||||
if (System) {
|
||||
System.active = true;
|
||||
}
|
||||
}
|
||||
const specifics = [];
|
||||
let max = 1;
|
||||
|
|
|
@ -92,7 +92,10 @@ export default class Engine {
|
|||
'RunAnimations',
|
||||
];
|
||||
defaultSystems.forEach((defaultSystem) => {
|
||||
ecs.system(defaultSystem).active = true;
|
||||
const System = ecs.system(defaultSystem);
|
||||
if (System) {
|
||||
System.active = true;
|
||||
}
|
||||
});
|
||||
const view = Ecs.serialize(ecs);
|
||||
await this.server.writeData(
|
||||
|
|
Loading…
Reference in New Issue
Block a user