mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-23 23:03:51 -06:00
fixed bug where player disconects were changing next layer when vote was not running
This commit is contained in:
parent
9754bc8416
commit
96305ec5c4
@ -142,6 +142,7 @@ export default class MapVote extends BasePlugin
|
|||||||
|
|
||||||
async onPlayerDisconnected()
|
async onPlayerDisconnected()
|
||||||
{
|
{
|
||||||
|
if (!this.votingEnabled) return;
|
||||||
await this.server.updatePlayerList();
|
await this.server.updatePlayerList();
|
||||||
this.clearVote();
|
this.clearVote();
|
||||||
this.updateNextMap();
|
this.updateNextMap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user