Skip to content

Commit

Permalink
Merge pull request #1266 from Arctos2win/dev
Browse files Browse the repository at this point in the history
fix player metadata can get set to false.
  • Loading branch information
Arctos2win authored Dec 12, 2023
2 parents 4240253 + 9bbf321 commit ed9dcda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions [core]/es_extended/server/classes/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,8 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
return print("[^1ERROR^7] xPlayer.setMeta ^5index^7 should be ^5string^7!")
end

if not value then
return print(("[^1ERROR^7] xPlayer.setMeta ^5%s^7 is Missing!"):format(value))
if value == nil then
return print("[^1ERROR^7] xPlayer.setMeta value is missing!")
end

local _type = type(value)
Expand Down

1 comment on commit ed9dcda

@iSentrie
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's server side, maybe print players identifier, so error could be checked.

Please sign in to comment.