Attload fix (CLIENT check)

This commit is contained in:
Fesiug 2024-06-07 15:57:24 -04:00 committed by GitHub
parent a268cde1a6
commit e004c1bcdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ function ArcCW.LoadAttachmentType(att, name)
if genAttCvar:GetBool() and !att.DoNotRegister and !att.InvAtt and !att.Free then
local attent = {}
attent.Base = "arccw_att_base"
if att.Icon then
if CLIENT and att.Icon then
attent.IconOverride = string.Replace( att.Icon:GetTexture( "$basetexture" ):GetName() .. ".png", "0001010", "" )
end
attent.PrintName = att.PrintName or name