Skip to content

Commit

Permalink
Merge pull request #18 from Baileyeatspizza/master
Browse files Browse the repository at this point in the history
Thank you for your contribution
  • Loading branch information
LM-loleris authored Oct 25, 2021
2 parents 83d0696 + 84b1d2d commit 9519994
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ProfileService.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2253,21 +2253,18 @@ function ProfileService.GetProfileStore(profile_store_index, profile_template) -
}
setmetatable(profile_store, ProfileStore)

local options = Instance.new("DataStoreOptions")
options:SetExperimentalFeatures({v2 = true})

if IsLiveCheckActive == true then
profile_store._is_pending = true
task.spawn(function()
WaitForLiveAccessCheck()
if UseMockDataStore == false then
profile_store._global_data_store = DataStoreService:GetDataStore(profile_store_name, profile_store_scope, options)
profile_store._global_data_store = DataStoreService:GetDataStore(profile_store_name, profile_store_scope)
end
profile_store._is_pending = false
end)
else
if UseMockDataStore == false then
profile_store._global_data_store = DataStoreService:GetDataStore(profile_store_name, profile_store_scope, options)
profile_store._global_data_store = DataStoreService:GetDataStore(profile_store_name, profile_store_scope)
end
end

Expand Down

0 comments on commit 9519994

Please sign in to comment.