forked from Nebual/NadmodPP
Fix off-by-one error on bot SteamID64
This commit is contained in:
parent
d1f4ba3b35
commit
c81e3fe15c
@ -206,7 +206,7 @@ function metaply:SteamID64bot()
|
||||
if( not IsValid( self ) ) then return end
|
||||
if self:IsBot() then
|
||||
-- Calculate Bot's SteamID64 according to gmod wiki
|
||||
return 90071996842377216 + tonumber( string.sub( self:Nick(), 4) )
|
||||
return ( 90071996842377216 + tonumber( string.sub( self:Nick(), 4) ) -1 )
|
||||
else
|
||||
return self:SteamID64()
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user