Update player.lua

fix for `subValue` arg in `setMeta` function
This commit is contained in:
Katoteki
2023-07-26 21:35:39 +02:00
committed by GitHub
parent a95e0397b0
commit df93efb778
+1 -1
View File
@@ -642,7 +642,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
if _type ~= "string" then
return print(("[^1ERROR^7] xPlayer.setMeta ^5value^7 should be ^5string^7 as a subIndex!"):format(value))
end
self.metadata[index] = table.create(0, 0)
self.metadata[index][value] = subValue
end