chore: simple

This commit is contained in:
cha0s 2019-10-10 01:30:33 -05:00
parent 66cfd9c21a
commit a852a906be

View File

@ -36,8 +36,7 @@ export class Behaved extends decorate(Trait) {
entity: this.entity,
});
this._currentRoutine = undefined;
const routinesJSON = this.params.routines;
this._routines = (new Routines()).fromJSON(routinesJSON);
this._routines = (new Routines()).fromJSON(this.params.routines);
this.updateCurrentRoutine(this.state.currentRoutine);
}