diff options
Diffstat (limited to 'entities/weapons/hands.lua')
| -rw-r--r-- | entities/weapons/hands.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/entities/weapons/hands.lua b/entities/weapons/hands.lua index 553c4f1..57c56d9 100644 --- a/entities/weapons/hands.lua +++ b/entities/weapons/hands.lua @@ -39,7 +39,7 @@ function SWEP:DefaultPickup() if self.Pickup == nil then local tr = self.Owner:GetEyeTrace() local dist = self.Owner:GetPos():Distance(tr.HitPos) - if dist < 100 and tr.Entity:GetMass() < 100 then + if dist < 100 and tr.Entity.GetMass and tr.Entity:GetMass() < 100 then self.Pickup = tr.Entity self.PickupAngles = tr.Entity:GetAngles() self.PickupOffset = dist |
