Skip to content

Commit

Permalink
Update init.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
EarthSalamander42 committed Oct 20, 2023
1 parent d527e36 commit 8641d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/scripts/vscripts/components/api/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function api:GetPlayerCosmetics(player_id, cosmetic_type)

local cosmetics = api[cosmetic_type]

if cosmetics and type(cosmetics == "table" and next(cosmetics)) then
if cosmetics and type(cosmetics) == "table" and next(cosmetics) then
else
print("api:GetPlayerCosmetics: cosmetics table value is empty for cosmetic_type:", cosmetic_type)
return false
Expand Down

0 comments on commit 8641d2e

Please sign in to comment.