This commit is contained in:
Fantino Davide 2022-09-16 01:16:04 +02:00
parent 54e572a2d1
commit dc3f294a90

View File

@ -365,7 +365,10 @@ export default class MapVote extends BasePlugin {
let cpyWinners = this.currentWinners; let cpyWinners = this.currentWinners;
let skipSetNextMap = false; let skipSetNextMap = false;
if (cpyWinners.find(e => e == this.nominations[ 0 ])) { 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 { else {
skipSetNextMap = true; skipSetNextMap = true;
if (this.newVoteTimeout == null) { if (this.newVoteTimeout == null) {