Skip to content

Commit

Permalink
fix(time): Make sure time is a number
Browse files Browse the repository at this point in the history
  • Loading branch information
FjamZoo authored Jan 8, 2024
1 parent 5b003d1 commit 9a83c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/time.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ AddStateBagChangeHandler('currentTime', 'global', function(_, _, value)
end)

AddStateBagChangeHandler('timeScale', 'global', function(_, _, value)
if value then
if value and type(value) == 'number' then

if playerState.syncWeather then
NetworkOverrideClockMillisecondsPerGameMinute(value)
Expand Down Expand Up @@ -45,4 +45,4 @@ AddStateBagChangeHandler('syncWeather', ('player:%s'):format(cache.serverId), fu
NetworkOverrideClockMillisecondsPerGameMinute(99999999)
NetworkOverrideClockTime(18, 0, 0)
end
end)
end)

0 comments on commit 9a83c7b

Please sign in to comment.