diff --git a/README.md b/README.md index 3d94b6f..3d0676b 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,11 @@ If you have any issues or feedback regarding the SDK, please contact our friendl Changelog --------- +**2.2.1** +* fixed bug related to game passes purchases + **2.2.0** -* added support for wally +* added support for wally (OBS: breaking changes) **2.1.35** * fixed argument order diff --git a/gameanalytics-sdk/GameAnalytics/Version.lua b/gameanalytics-sdk/GameAnalytics/Version.lua index 1d0a2d6..1fcbc38 100644 --- a/gameanalytics-sdk/GameAnalytics/Version.lua +++ b/gameanalytics-sdk/GameAnalytics/Version.lua @@ -1,5 +1,5 @@ local version = { - SdkVersion = "2.2.0" + SdkVersion = "2.2.1" } return version diff --git a/gameanalytics-sdk/GameAnalytics/init.lua b/gameanalytics-sdk/GameAnalytics/init.lua index 21dd2a5..ed1bae0 100644 --- a/gameanalytics-sdk/GameAnalytics/init.lua +++ b/gameanalytics-sdk/GameAnalytics/init.lua @@ -220,7 +220,7 @@ function ga:addBusinessEvent(playerId, options) if itemType == "Gamepass" and cartType ~= "Website" then local player = Players:GetPlayerByUserId(playerId) - local playerData = store:GetPlayerData(player) + local playerData = store:GetPlayerDataFromCache(playerId) if not playerData.OwnedGamepasses then playerData.OwnedGamepasses = {} end diff --git a/wally.toml b/wally.toml index a4b3c35..27806f1 100644 --- a/wally.toml +++ b/wally.toml @@ -1,7 +1,7 @@ [package] name = "gameanalytics/gameanalytics-sdk" description = "Official Roblox SDK for GameAnalytics. GameAnalytics is a free analytics platform that helps game developers understand their players' behaviour by delivering relevant insights." -version = "2.2.0" +version = "2.2.1" license = "MIT" authors = ["GameAnalytics "] realm = "shared"