Reworked caching

This commit is contained in:
ZioPao
2023-11-13 03:35:07 +01:00
parent deb6dcc056
commit e374601402
6 changed files with 117 additions and 80 deletions

View File

@@ -176,7 +176,6 @@ function ModDataHandler:apply()
ModData.transmit(CommandsData.GetKey(self.username))
end
function ModDataHandler.ReceiveData(key, table)
TOC_DEBUG.print("receive data for " .. key)
if table == {} or table == nil then
@@ -189,6 +188,7 @@ function ModDataHandler.ReceiveData(key, table)
end
Events.OnReceiveGlobalModData.Add(ModDataHandler.ReceiveData)
-------------------
---@param username string?
---@return ModDataHandler