mirror of
https://github.com/CapsAdmin/wowozela.git
synced 2025-03-04 03:13:27 -05:00
Safety
This commit is contained in:
parent
1f61b8a622
commit
42a23dfc1a
@ -291,7 +291,8 @@ if SERVER then
|
||||
end
|
||||
}
|
||||
net.Receive("wowozela", function(len, ply)
|
||||
netFuncs[net.ReadInt(4)](len, ply)
|
||||
local func = netFuncs[net.ReadInt(4)]
|
||||
if func then func(len, ply) end
|
||||
end)
|
||||
else
|
||||
local function update_sample(ply, i, v)
|
||||
@ -366,7 +367,8 @@ else
|
||||
end,
|
||||
}
|
||||
net.Receive("wowozela", function()
|
||||
netFuncs[net.ReadInt(4)]()
|
||||
local func = netFuncs[net.ReadInt(4)]
|
||||
if func then func() end
|
||||
end)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user