From 5f2a8015bd5d2a42e79038bb52f20260d8d97ba0 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 29 Oct 2016 19:00:29 -0400 Subject: Fixed HasItem() sometimes erroring --- entities/entities/art_droppeditem/cl_init.lua | 3 --- 1 file changed, 3 deletions(-) (limited to 'entities') diff --git a/entities/entities/art_droppeditem/cl_init.lua b/entities/entities/art_droppeditem/cl_init.lua index eb8868d..ceebc7f 100644 --- a/entities/entities/art_droppeditem/cl_init.lua +++ b/entities/entities/art_droppeditem/cl_init.lua @@ -21,9 +21,6 @@ hook.Add("Tick","pickupitemstick",function() local ae = ents.FindInSphere(lp:GetPos(),5) for k,v in pairs(ae) do local ei = v:EntIndex() - if ei ~= 1 and ei ~= -1 then - print("Checking if we should pick up", ei) - end if (not sentrequests[ei]) and v.GetClass and v:GetClass() == "art_droppeditem" then print("Sending request to pick up", ei) net.Start("art_requestpickup") -- cgit v1.2.3-70-g09d2