fix player metadata can get set to false.

This commit is contained in:
Arctos2win
2023-12-12 20:28:12 +01:00
committed by GitHub
parent 4240253a31
commit 9bbf32161e
+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)