From 6438736e4392629b6c5d6a92a8fa5a0ddb9c055d Mon Sep 17 00:00:00 2001 From: cha0s Date: Sat, 6 Apr 2019 23:37:32 -0400 Subject: [PATCH] fix: entityList never doesn't exist --- packages/topdown/layer.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/topdown/layer.js b/packages/topdown/layer.js index 17fcf46..f99d049 100644 --- a/packages/topdown/layer.js +++ b/packages/topdown/layer.js @@ -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);