From 15b1d070bfbb68935447a3e0657706a32da38085 Mon Sep 17 00:00:00 2001 From: ZioPao Date: Thu, 11 Jan 2024 01:36:16 +0100 Subject: [PATCH] Another fix to init and other clients handling --- media/lua/client/TOC/Controllers/DataController.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/media/lua/client/TOC/Controllers/DataController.lua b/media/lua/client/TOC/Controllers/DataController.lua index 6b68369..2813cb9 100644 --- a/media/lua/client/TOC/Controllers/DataController.lua +++ b/media/lua/client/TOC/Controllers/DataController.lua @@ -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