Merge pull request #3 from NO-LOAFING/patch-1

Fixed prop_effect not being selected properly (Thanks NO-LOAFING)
This commit is contained in:
Thirteen 2018-09-14 20:15:03 +01:00 committed by GitHub
commit bc6bca5011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,7 @@ function TOOL:LeftClick( tr )
if CLIENT then return true end
if ( IsValid( tr.Entity ) ) then
local ent = tr.Entity
if ( IsValid( ent.AttachedEntity ) ) then ent = ent.AttachedEntity end
local physbone = tr.PhysicsBone
self:SelectEntity( ent, physbone )
end