From 96305ec5c454221f84b63956022949a3b54c028c Mon Sep 17 00:00:00 2001 From: maskedmonkyman Date: Sun, 20 Mar 2022 15:35:43 -0700 Subject: [PATCH] fixed bug where player disconects were changing next layer when vote was not running --- mapvote.js | 1 + 1 file changed, 1 insertion(+) diff --git a/mapvote.js b/mapvote.js index 7519a19..a25f3ee 100644 --- a/mapvote.js +++ b/mapvote.js @@ -142,6 +142,7 @@ export default class MapVote extends BasePlugin async onPlayerDisconnected() { + if (!this.votingEnabled) return; await this.server.updatePlayerList(); this.clearVote(); this.updateNextMap();