1
0
mirror of https://github.com/IkarusHD/ICF-3.git synced 2025-03-04 03:03:12 -05:00

Better version

This commit is contained in:
Astralcircle 2025-01-10 15:31:37 +03:00 committed by GitHub
parent 5e56045382
commit 160cc01fb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,9 +54,11 @@ end
net.Receive("ACF_Networking", function(Bits)
local Bytes = net.ReadUInt(12)
local String = Decompress(net.ReadData(Bytes))
if not String then return end
local Message
local Message = ToTable(String)
if String then
Message = ToTable(String)
end
if not Message then
local Error = "ACF Networking: Failed to parse message. Report this to the ACF Team.\nMessage size: %sB\nTotal size: %sB\nMessage: %s"