fixed bug where player disconects were changing next layer when vote was not running

This commit is contained in:
maskedmonkyman 2022-03-20 15:35:43 -07:00
parent 9754bc8416
commit 96305ec5c4

View File

@ -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();