fix: desync
This commit is contained in:
parent
05350e6ccf
commit
c1eb862af2
|
@ -141,6 +141,9 @@ export default class Entity {
|
||||||
|| ('frame' in Sprite)
|
|| ('frame' in Sprite)
|
||||||
) {
|
) {
|
||||||
this.constructor.loadAsset(this.entity.Sprite.source).then(async (asset) => {
|
this.constructor.loadAsset(this.entity.Sprite.source).then(async (asset) => {
|
||||||
|
if (!this.entity?.Sprite) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const texture = await this.constructor.textureFromAsset(
|
const texture = await this.constructor.textureFromAsset(
|
||||||
asset,
|
asset,
|
||||||
this.entity.Sprite.animation,
|
this.entity.Sprite.animation,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user