Skip to content

Commit

Permalink
fix(server/player): backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ChatDisabled committed Feb 10, 2025
1 parent 4ceee77 commit bc0d604
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1133,9 +1133,11 @@ function SetMetadata(identifier, metadata, value)
lib.print.error('cannot get nested metadata more than 1 level deep')
end

oldValue = player.PlayerData.metadata[metaTable][metaKey]
oldValue = player.PlayerData.metadata[metaTable]

player.PlayerData.metadata[metaTable][metaKey] = value

metadata = metaTable
else
oldValue = player.PlayerData.metadata[metadata]

Expand Down

0 comments on commit bc0d604

Please sign in to comment.