Players Online Stats added and some bugfixes

This commit is contained in:
2026-02-15 20:21:34 +01:00
parent a99607dd0a
commit 19d839b4d8
5 changed files with 80 additions and 23 deletions

View File

@@ -42,7 +42,7 @@ CreateThread(function()
end
local curUnderwaterTime = GetPlayerUnderwaterTimeRemaining(cache.playerId)
if curUnderwaterTime < maxUnderwaterTime then
if maxUnderwaterTime and curUnderwaterTime < maxUnderwaterTime then
SendMessage('setOxygen', {
current = curUnderwaterTime,
max = maxUnderwaterTime