Another fix to init and other clients handling
This commit is contained in:
@@ -365,10 +365,11 @@ function DataController.ReceiveData(key, data)
|
|||||||
|
|
||||||
if username == getPlayer():getUsername() and not handler.isResetForced then
|
if username == getPlayer():getUsername() and not handler.isResetForced then
|
||||||
handler:loadLocalData(key)
|
handler:loadLocalData(key)
|
||||||
elseif handler.isResetForced or data == nil or #data == 0 then
|
elseif handler.isResetForced or data == nil then
|
||||||
TOC_DEBUG.print("Data is nil or empty!")
|
TOC_DEBUG.print("Data is nil or empty!?")
|
||||||
|
TOC_DEBUG.printTable(data)
|
||||||
handler:setup(key)
|
handler:setup(key)
|
||||||
else
|
elseif data and data.limbs then
|
||||||
handler:applyOnlineData(data)
|
handler:applyOnlineData(data)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user