Some fixes to ModDataHandler, preventing desync with the table from ModData

This commit is contained in:
ZioPao
2023-11-17 20:05:41 +01:00
parent bd8dae128c
commit 877e5a711e
3 changed files with 32 additions and 10 deletions

View File

@@ -14,7 +14,10 @@ end
---@param key string
---@param table tocModData
function ServerDataHandler.AddTable(key, table)
TOC_DEBUG.print("Adding table with key: " .. tostring(key))
print("TOC: received ModData => " .. key)
TOC_DEBUG.printTable(table)
--TOC_DEBUG.print("Adding table with key: " .. tostring(key))
ModData.add(key, table) -- Add it to the server mod data
ServerDataHandler.modData[key] = table
end