mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 00:11:56 +00:00
refactor(FxLayer): simplify ping event subscription
This commit is contained in:
@@ -367,10 +367,6 @@ export class FxLayer implements Layer {
|
||||
} catch (err) {
|
||||
console.error("Failed to load FX sprites:", err);
|
||||
}
|
||||
if (this.pingEventCleanup) {
|
||||
this.pingEventCleanup();
|
||||
this.pingEventCleanup = undefined;
|
||||
}
|
||||
this.pingEventCleanup = this.eventBus.on(
|
||||
PingPlacedEvent,
|
||||
(event: PingPlacedEvent) => {
|
||||
|
||||
Reference in New Issue
Block a user