Merge pull request #1266 from Arctos2win/dev

fix player metadata can get set to false.
This commit is contained in:
Arctos2win
2023-12-12 20:45:24 +01:00
committed by GitHub
+2 -2
View File
@@ -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)