From 19c4ce3054811110cf1c4670fb1263cdf8f5841a Mon Sep 17 00:00:00 2001 From: David Malchin Date: Fri, 23 Aug 2024 03:54:46 +0300 Subject: [PATCH] fix(server/queue): get max players via convar for better reliability --- server/queue.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/queue.lua b/server/queue.lua index 5bc4225f5..44e73856d 100644 --- a/server/queue.lua +++ b/server/queue.lua @@ -18,7 +18,7 @@ end -- Queue code local config = require 'config.queue' -local maxPlayers = GlobalState.MaxPlayers +local maxPlayers = GetConvarInt('sv_maxclients', 48) -- destructure frequently used config options local waitingEmojis = config.waitingEmojis