Skip to content

Commit

Permalink
Merge pull request #301 from ComfyFactory/session_handler
Browse files Browse the repository at this point in the history
Session handler - fix minor issue
  • Loading branch information
Gerkiz authored Aug 18, 2022
2 parents 18c0ce7 + 64b63f6 commit 99e9734
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/datastore/session_data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,12 @@ Server.on_data_set_changed(
function(data)
local player = game.get_player(data.key)
if player and player.valid then
session[data.player_index] = data.value
session[data.key] = data.value
if data.value > settings.trusted_value then
trusted[data.player_index] = true
trusted[data.key] = true
else
if trusted[data.player_index] then
trusted[data.player_index] = false
if trusted[data.key] then
trusted[data.key] = false
end
end
end
Expand Down

0 comments on commit 99e9734

Please sign in to comment.