aboutsummaryrefslogtreecommitdiff
path: root/gamemode/client/qpanels
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/client/qpanels')
-rw-r--r--gamemode/client/qpanels/inventory.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/gamemode/client/qpanels/inventory.lua b/gamemode/client/qpanels/inventory.lua
index 9fec1cc..b366c7a 100644
--- a/gamemode/client/qpanels/inventory.lua
+++ b/gamemode/client/qpanels/inventory.lua
@@ -82,7 +82,10 @@ local function DrawBackpackOnDPanel(dp, backpack, backpacknum, tent)
if invfuncs.CanFitInBackpack(backpack,j,i,item) then
local fromtbl = icon.invpos
local wasequiped = icon.wasequiped
- if wasequiped then
+ local ondropped = icon.ondropped
+ if ondropped then
+ ondropped(backpacknum,j,i,item)
+ elseif wasequiped then
net.Start("unequipitem")
net.WriteString(wasequiped)
net.WriteUInt(backpacknum,16)