fix: (Metadata) string check on getMeta

This commit is contained in:
P Gergő
2023-02-22 13:04:16 +01:00
parent 5dedf4fcde
commit cd5b562f83
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
test
@@ -578,6 +578,10 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
function self.getMeta(index, subIndex)
if index then
if type(index) ~= "string" then
return print("[^1ERROR^7] xPlayer.getMeta ^5index^7 should be ^5string^7!")
end
if self.meta[index] then
if subIndex and type(self.meta[index]) == "table" and self.meta[index][subIndex] then