Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions DataStore2/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,16 @@ do
function CombinedDataStore:SetBackup(retries)
self.combinedStore:SetBackup(retries)
end

function CombinedDataStore:AfterSave(callback)
local function wrappedCallback(save)
local saveValue = save[self.combinedName]

return callback(saveValue)
end

self.combinedStore:AfterSave(wrappedCallback)
end
end

local DataStoreMetatable = {}
Expand Down