From 28affa22541b9ef251707793f6b1c1a26d663592 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sat, 3 Nov 2018 18:23:45 -0400 Subject: Started on new npc system Started work on the new npc system --- gamemode/inventorysystem/cl_common.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'gamemode/inventorysystem/cl_common.lua') diff --git a/gamemode/inventorysystem/cl_common.lua b/gamemode/inventorysystem/cl_common.lua index bf9fb6f..a83deb1 100644 --- a/gamemode/inventorysystem/cl_common.lua +++ b/gamemode/inventorysystem/cl_common.lua @@ -63,6 +63,7 @@ function com.generatereceiver() if posequal then return end local item = frominv:Get(frompos) + if not item then return end --Fake remove the item, in case the position we want to move it to overlaps with where it is now. frominv:Remove(frompos) local cf = toinv:CanFitIn(topos,item) -- cgit v1.2.3-70-g09d2