Skip to content

Commit

Permalink
Merge pull request #3233 from FlorianLeChat/master-1
Browse files Browse the repository at this point in the history
Remove the SteamID64/AccountID workaround
  • Loading branch information
FPtje authored Aug 10, 2023
2 parents 43cabd4 + 564c440 commit 4bb1890
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions gamemode/modules/workarounds/sh_workarounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,25 +86,6 @@ timer.Simple(3, function()
]])
end)

if game.SinglePlayer() or GetConVar("sv_lan"):GetBool() and
not DarkRP.disabledDefaults["workarounds"]["nil SteamID64 and AccountID local server fix"] then
local plyMeta = FindMetaTable("Player")

if SERVER then
local sid64 = plyMeta.SteamID64

function plyMeta:SteamID64(...)
return sid64(self, ...) or "0"
end
end

local aid = plyMeta.AccountID

function plyMeta:AccountID(...)
return aid(self, ...) or 0
end
end

if SERVER and not DarkRP.disabledDefaults["workarounds"]["Error on edict limit"] then
-- https://github.com/FPtje/DarkRP/issues/2640
local entsCreate = ents.Create
Expand Down

0 comments on commit 4bb1890

Please sign in to comment.