fix(FxLayer): correct syntax error in init method

This commit is contained in:
Restart2008
2025-11-21 21:06:05 -08:00
parent 53f9c02e84
commit 9ae7260a23
-5
View File
@@ -361,10 +361,6 @@ export class FxLayer implements Layer {
} catch (err) {
console.error("Failed to load FX sprites:", err);
}
}
if (this.pingEventCleanup) {
this.pingEventCleanup();
if (this.pingEventCleanup) {
this.pingEventCleanup();
this.pingEventCleanup = undefined;
@@ -374,7 +370,6 @@ export class FxLayer implements Layer {
this.allFx.push(pingFx);
});
}
this.pingEventCleanup?.();
redraw(): void {
this.canvas = document.createElement("canvas");