Replace UInt32 with Double in net message (#123)

This commit is contained in:
Periapsises 2023-08-10 14:15:23 -04:00 committed by GitHub
parent 4457791a20
commit 9363e67738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ net.Receive( "CFC_TimedPunishments_Punishments", function()
for _ = 1, count do
local name = net.ReadString()
local expiration = net.ReadUInt( 32 )
local expiration = net.ReadDouble()
punishments[name] = expiration
end

View File

@ -70,7 +70,7 @@ function TP.SendPunishments( ply )
for name, expiration in pairs( punishments ) do
net.WriteString( name )
net.WriteUInt( expiration, 32 )
net.WriteDouble( expiration )
end
net.Send( ply )