Skip to content

Commit

Permalink
Fix nil error
Browse files Browse the repository at this point in the history
  • Loading branch information
Astralcircle authored Nov 8, 2024
1 parent 405deca commit e827818
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/acf/core/networking/networking_sv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ net.Receive("ACF_Networking", function(_, Player)
local Bytes = net.ReadUInt(12)
-- This decompression limit should only be as high as it absolutely needs to be
local String = Decompress(net.ReadData(Bytes), 256)
if not String then return end

local Message = ToTable(String)
if not Message then return end

for Name, Data in pairs(Message) do
local Handler = Receiver[Name]
Expand Down

0 comments on commit e827818

Please sign in to comment.