Skip to content

Commit ae57ab4

Browse files
committed
fix: Fixing missing await in animation generation spawning 2 tilesets
1 parent 38a98e2 commit ae57ab4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Optimizer.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export class Optimizer {
179179

180180
private async optimizeNewTile(tileId: number): Promise<number> {
181181
if (this.logLevel === LogLevel.VERBOSE) {
182-
console.log(`${tileId} tile is optimizing...`);
182+
//console.log(`${tileId} tile is optimizing...`);
183183
}
184184

185185
let minBitId;
@@ -321,7 +321,7 @@ export class Optimizer {
321321
if (tileData.animation) {
322322
newTileData.animation = [];
323323
for (const frame of tileData.animation) {
324-
this.optimizeNewTile(oldFirstgid + frame.tileid);
324+
await this.optimizeNewTile(oldFirstgid + frame.tileid);
325325

326326
newTileData.animation.push({
327327
duration: frame.duration,

0 commit comments

Comments
 (0)