From dc3f294a90bcd27f4ecc323cf5d79d9bed58447b Mon Sep 17 00:00:00 2001 From: Fantino Davide Date: Fri, 16 Sep 2022 01:16:04 +0200 Subject: [PATCH] hotfix --- mapvote.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mapvote.js b/mapvote.js index 66466ca..e561811 100644 --- a/mapvote.js +++ b/mapvote.js @@ -365,7 +365,10 @@ export default class MapVote extends BasePlugin { let cpyWinners = this.currentWinners; let skipSetNextMap = false; if (cpyWinners.find(e => e == this.nominations[ 0 ])) { - if (cpyWinners.length > 1) delete cpyWinners[ cpyWinners.indexOf(this.nominations[ 0 ]).filter(e => e != null) ] + if (cpyWinners.length > 1) { + delete cpyWinners[ cpyWinners.indexOf(this.nominations[ 0 ]) ] + cpyWinners = cpyWinners.filter(e => e != null) + } else { skipSetNextMap = true; if (this.newVoteTimeout == null) {