Fix off-by-one error on bot SteamID64

This commit is contained in:
sammyt291 2020-03-04 09:33:47 +00:00 committed by GitHub
parent d1f4ba3b35
commit c81e3fe15c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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