Fixed sync with server after setup to prevent issues with medical check
This commit is contained in:
@@ -29,12 +29,18 @@ function ServerDataHandler.AddTable(key, table)
|
||||
--TOC_DEBUG.printTable(table)
|
||||
|
||||
-- Set that the data has been modified and it's updated on the server
|
||||
table.isUpdateFromServer = true
|
||||
table.isUpdateFromServer = true -- FIX this is useless
|
||||
|
||||
ModData.add(key, table) -- Add it to the server mod data
|
||||
ServerDataHandler.modData[key] = table
|
||||
|
||||
|
||||
-- if table.isInitializing == true then
|
||||
-- TOC_DEBUG.print("Applied data after setup")
|
||||
-- table.isInitializing = false
|
||||
-- end
|
||||
|
||||
|
||||
-- Since this could be triggered by a different client than the one referenced in the key, we're gonna
|
||||
-- apply the changes back to the key client again to be sure that everything is in sync
|
||||
local username = CommandsData.GetUsername(key)
|
||||
|
||||
Reference in New Issue
Block a user