fix: desync

This commit is contained in:
cha0s 2024-08-01 13:37:07 -05:00
parent 05350e6ccf
commit c1eb862af2

View File

@ -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,