fix: player in queueOut can sometimes be nil?

i'm not sure why this happens but, it does remove the indexing with nil error that spams at one point
This commit is contained in:
omar 2024-01-25 21:08:01 +01:00 committed by GitHub
parent c12356af4e
commit 95e7fffeff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -154,6 +154,7 @@ function ServerProcess.start()
for Identifier: string, players in serverQueue do for Identifier: string, players in serverQueue do
for player: Player, data in players do for player: Player, data in players do
if #data > 0 then if #data > 0 then
if not queueOut[player] then continue end
queueOut[player][Identifier] = table.clone(data) queueOut[player][Identifier] = table.clone(data)
table.clear(data) table.clear(data)
end end