mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 08:22:16 +02:00
Update src/timed-event-manager.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
e1bdeaf195
commit
dc4af17c84
@ -157,8 +157,8 @@ export class TimedEventDisplay extends Phaser.GameObjects.Container {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateCountdown() {
|
updateCountdown() {
|
||||||
if (this.event!.eventType !== EventType.GENERIC) {
|
if (this.event && this.event.eventType !== EventType.GENERIC) {
|
||||||
this.eventTimerText.setText(this.timeToGo(this.event!.endDate));
|
this.eventTimerText.setText(this.timeToGo(this.event.endDate));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user