mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-23 20:43:52 -06:00
hotfix
This commit is contained in:
parent
54e572a2d1
commit
dc3f294a90
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user