From 79c1c484eab6fbf36a69d155a324540887e38880 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 29 Oct 2016 17:51:13 -0400 Subject: Got shops working --- entities/weapons/hands.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'entities/weapons') diff --git a/entities/weapons/hands.lua b/entities/weapons/hands.lua index e0b1ae6..d55c416 100644 --- a/entities/weapons/hands.lua +++ b/entities/weapons/hands.lua @@ -39,6 +39,7 @@ end local Box = Vector(8,8,8) function SWEP:PrimaryAttack() + if not self.Owner.Inventory then return end local rightitem = self.Owner.Inventory.Equiped["Left"] if rightitem ~= false and rightitem.onClick ~= nil then rightitem:onClick(self.Owner) -- cgit v1.2.3-70-g09d2