mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-24 00:13: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 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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user