From f93e39e3cddcd54e05229474841ae408492b0286 Mon Sep 17 00:00:00 2001 From: NachoToast <32235595+NachoToast@users.noreply.github.com> Date: Wed, 3 Aug 2022 19:46:14 +1200 Subject: [PATCH] hotfix Jukebox smart queue preparation (2.0.1) --- package.json | 2 +- src/classes/Jukebox/Jukebox.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fce9284..fd38eef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jukebot", - "version": "2.0.0", + "version": "2.0.1", "main": "build/index.js", "license": "MIT", "repository": "https://github.com/NachoToast/Jukebot.git", diff --git a/src/classes/Jukebox/Jukebox.ts b/src/classes/Jukebox/Jukebox.ts index 7f03609..6088b5c 100644 --- a/src/classes/Jukebox/Jukebox.ts +++ b/src/classes/Jukebox/Jukebox.ts @@ -169,7 +169,7 @@ export class Jukebox { this.prevInventory.addItems(this.inventory.shift()!); } - this.inventory[0].prepare(); + this.inventory[0]?.prepare(); this.events.emit(`stateChange`, this._status, newStatus); this._lastStatusChange = Date.now();