Skip to content

Commit

Permalink
Merge branch 'main' into remove-unused-attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Oct 20, 2023
2 parents 52e765b + 8347412 commit 3d85bbb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions data/libs/functions/game.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,12 @@ function Game.setStorageValue(key, value)
return
end

if value == -1 then
if globalStorageTable[key] then
table.remove(globalStorageTable, key)
end
return
end

globalStorageTable[key] = value
end

0 comments on commit 3d85bbb

Please sign in to comment.