fix: entityList never doesn't exist

This commit is contained in:
cha0s 2019-04-06 23:37:32 -04:00
parent ab9228a405
commit 6438736e43

View File

@ -128,10 +128,8 @@ export class Layer extends decorate(class {}) {
}
tick(elapsed) {
if (this.entityList) {
this.entityList.tick(elapsed);
this._state = this._state.set('entityList', this.entityList.state);
}
this.entityList.tick(elapsed);
this._state = this._state.set('entityList', this.entityList.state);
this._state = this._state.set('tilesetUri', this.tilesetUri);
this.tiles.tick(elapsed);
this._state = this._state.set('tiles', this.tiles.state);