mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +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() {
|
||||
if (this.event!.eventType !== EventType.GENERIC) {
|
||||
this.eventTimerText.setText(this.timeToGo(this.event!.endDate));
|
||||
if (this.event && this.event.eventType !== EventType.GENERIC) {
|
||||
this.eventTimerText.setText(this.timeToGo(this.event.endDate));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user