Fixed prosthesis not working correctly

This commit is contained in:
ZioPao
2024-05-05 00:47:50 +02:00
parent aadbe02df4
commit 5cc982188a
6 changed files with 40 additions and 24 deletions

View File

@@ -29,18 +29,11 @@ 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 -- FIX this is useless
table.isUpdateFromServer = true -- FIX this is useless as of now
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)