diff --git a/app/react/components/pixi/entity.js b/app/react/components/pixi/entity.js index a7f987c..85b9ff8 100644 --- a/app/react/components/pixi/entity.js +++ b/app/react/components/pixi/entity.js @@ -141,6 +141,9 @@ export default class Entity { || ('frame' in Sprite) ) { this.constructor.loadAsset(this.entity.Sprite.source).then(async (asset) => { + if (!this.entity?.Sprite) { + return; + } const texture = await this.constructor.textureFromAsset( asset, this.entity.Sprite.animation,