Another fix to init and other clients handling

This commit is contained in:
ZioPao
2024-01-11 01:36:16 +01:00
parent 1028cef704
commit 15b1d070bf

View File

@@ -365,10 +365,11 @@ function DataController.ReceiveData(key, data)
if username == getPlayer():getUsername() and not handler.isResetForced then
handler:loadLocalData(key)
elseif handler.isResetForced or data == nil or #data == 0 then
TOC_DEBUG.print("Data is nil or empty!")
elseif handler.isResetForced or data == nil then
TOC_DEBUG.print("Data is nil or empty!?")
TOC_DEBUG.printTable(data)
handler:setup(key)
else
elseif data and data.limbs then
handler:applyOnlineData(data)
end