master
AlmTech Software 5 years ago
parent d393d67a25
commit a62c93b4a6
  1. 2
      gamemode/engine/lib/server/sv_networking.lua

@ -72,7 +72,7 @@ end
local function SendDatatableToClient( client, dt, type ) local function SendDatatableToClient( client, dt, type )
local datatable = initializeDatatable( type, dt, client ) -- before we actually send the stuff, cache it and remove unneeded stuff local datatable = initializeDatatable( type, dt, client ) -- before we actually send the stuff, cache it and remove unneeded stuff
local net_start = net.Start( "quantum_menu_net" ) local net_start = net.Start( "quantum_menu_net" )
if( net_start ) then Quantum.Debug( "Sending net message to " .. tostring(ply) .. "..." ) if( net_start ) then Quantum.Debug( "Sending net message to " .. tostring(ply) .. "..." ) end
if( #datatable > 0 ) then -- if it's empty just dont send it because we will save 8 bits if( #datatable > 0 ) then -- if it's empty just dont send it because we will save 8 bits
net.WriteString( datatable ) -- send the data to the player net.WriteString( datatable ) -- send the data to the player
end end

Loading…
Cancel
Save