From ae57ab4a4702fe771f44818dcee06d977ab80113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Wed, 13 Dec 2023 22:15:23 +0100 Subject: [PATCH] fix: Fixing missing await in animation generation spawning 2 tilesets --- src/Optimizer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Optimizer.ts b/src/Optimizer.ts index 36ccf22..bbeeeb7 100644 --- a/src/Optimizer.ts +++ b/src/Optimizer.ts @@ -179,7 +179,7 @@ export class Optimizer { private async optimizeNewTile(tileId: number): Promise { if (this.logLevel === LogLevel.VERBOSE) { - console.log(`${tileId} tile is optimizing...`); + //console.log(`${tileId} tile is optimizing...`); } let minBitId; @@ -321,7 +321,7 @@ export class Optimizer { if (tileData.animation) { newTileData.animation = []; for (const frame of tileData.animation) { - this.optimizeNewTile(oldFirstgid + frame.tileid); + await this.optimizeNewTile(oldFirstgid + frame.tileid); newTileData.animation.push({ duration: frame.duration,