From c1eb862af258898dad40c0d4c79108d4c9cb5220 Mon Sep 17 00:00:00 2001 From: cha0s Date: Thu, 1 Aug 2024 13:37:07 -0500 Subject: [PATCH] fix: desync --- app/react/components/pixi/entity.js | 3 +++ 1 file changed, 3 insertions(+) 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,